Include sys/socket.h if it's available
CVS patchset: 1614 CVS date: 1997/05/07 19:27:21
This commit is contained in:
parent
f3b683a4b0
commit
49a247317a
|
@ -19,6 +19,9 @@
|
|||
/* Define as 1 if you have <machine/types.h> */
|
||||
#define MACHINE_TYPES_H 0
|
||||
|
||||
/* Define as 1 if you have <sys/socket.h> */
|
||||
#define MACHINE_SYS_SOCKET_H 0
|
||||
|
||||
/* Define as 1 if you have <glob.h> */
|
||||
#define HAVE_GLOB_H 0
|
||||
|
||||
|
|
|
@ -218,7 +218,7 @@ dnl Checks for header files we can live without.
|
|||
AC_HEADER_STDC
|
||||
AC_HEADER_MAJOR
|
||||
AC_CHECK_HEADERS(netinet/in_systm.h limits.h)
|
||||
AC_CHECK_HEADERS(alloca.h dirent.h)
|
||||
AC_CHECK_HEADERS(alloca.h dirent.h sys/socket.h)
|
||||
AC_CHECK_HEADERS(machine/types.h string.h)
|
||||
AC_CHECK_HEADERS(glob.h,,MISCOBJS="$MISCOBJS glob.o")
|
||||
AC_CHECK_HEADERS(fnmatch.h,,MISCOBJS="$MISCOBJS fnmatch.o")
|
||||
|
|
5
ftp.c
5
ftp.c
|
@ -4,6 +4,7 @@
|
|||
#define HAVE_MACHINE_TYPES_H 1
|
||||
#define HAVE_ALLOCA_H 1
|
||||
#define HAVE_NETINET_IN_SYSTM_H 1
|
||||
#define HAVE_SYS_SOCKET_H 1
|
||||
#endif
|
||||
|
||||
#if HAVE_MACHINE_TYPES_H
|
||||
|
@ -14,6 +15,10 @@
|
|||
# include <alloca.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
# include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_NETINET_IN_SYSTM_H
|
||||
# include <sys/types.h>
|
||||
# include <netinet/in_systm.h>
|
||||
|
|
|
@ -50,4 +50,8 @@ extern time_t timezone;
|
|||
extern void *myrealloc(void *, size_t);
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue