forked from mirrors/tftp-hpa-google
Move feature test macros into configure.in -> CFLAGS so we don't
end up with mismatch between "configure" and compile time
This commit is contained in:
parent
fd7a812f26
commit
5ec55f35e9
4 changed files with 27 additions and 19 deletions
15
config.h
15
config.h
|
@ -21,15 +21,6 @@
|
|||
/* Must be included before we include any system headers! */
|
||||
#include "acconfig.h"
|
||||
|
||||
/* This is necessary on Solaris with gcc */
|
||||
#define _XPG4_2
|
||||
#define _XOPEN_SOURCE
|
||||
#define __EXTENSIONS__
|
||||
|
||||
/* This is necessary on glibc systems */
|
||||
#define _BSD_SOURCE
|
||||
#define _ISO9X_SOURCE
|
||||
|
||||
/* Standard includes */
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -181,8 +172,12 @@ typedef unsigned long u_long;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
/* arpa/tftp.h, and possible missing pieces */
|
||||
/* arpa/{inet,tftp}.h, and possible missing pieces */
|
||||
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
/* If we don't have arpa/tftp.h we have problems... */
|
||||
#include <arpa/tftp.h>
|
||||
|
||||
#ifndef OACK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue