added check for some networking headers
This commit is contained in:
@ -208,6 +208,9 @@
|
||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
||||
#undef HAVE_NDIR_H
|
||||
|
||||
/* Define to 1 if you have the <netinet/if_ether.h> header file. */
|
||||
#undef HAVE_NETINET_IF_ETHER_H
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#undef HAVE_NETINET_IN_H
|
||||
|
||||
|
13
lib/sck.c
13
lib/sck.c
@ -32,10 +32,15 @@
|
||||
#include <errno.h>
|
||||
#include <string.h> /* strerror */
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if.h>
|
||||
#include <netinet/if_ether.h>
|
||||
#if defined(HAVE_NETINET_IN_H)
|
||||
# include <netinet/in.h>
|
||||
#endif
|
||||
#if defined(HAVE_NET_IF_H)
|
||||
# include <net/if.h>
|
||||
#endif
|
||||
#if defined(HAVE_NETINET_IF_ETHER_H)
|
||||
# include <netinet/if_ether.h>
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_NETINET_SCTP_H)
|
||||
# include <netinet/sctp.h>
|
||||
|
Reference in New Issue
Block a user