diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-02-15 17:01:59 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-02-15 17:01:59 -0800 |
commit | 65d4db36d678cadd80b1a0087302dcebeb6a0e04 (patch) | |
tree | ac51c342f466e56c567b35d57da189cfccf0e8c8 | |
parent | 0fedce057c2416f50d786ed5d47ec67f61a3ae6a (diff) | |
parent | a45969c8552d85d006ca2cd3da7a5b1d52b623b5 (diff) | |
download | libnet-65d4db36d678cadd80b1a0087302dcebeb6a0e04.tar.gz |
Merge branch 'master' of https://github.com/knoopx/libnet
-rw-r--r-- | libnet/configure.in | 17 | ||||
-rw-r--r-- | libnet/src/libnet_write.c | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libnet/configure.in b/libnet/configure.in index a18eec8..e85b3d6 100644 --- a/libnet/configure.in +++ b/libnet/configure.in @@ -201,6 +201,23 @@ case "$target_os" in AC_DEFINE(HAVE_SOCKADDR_SA_LEN, 1, [Define if the sockaddr structure includes a sa_len member.]) LIBNET_CONFIG_DEFINES="-DHAVE_SOCKADDR_SA_LEN" + +dnl +dnl Check to see if x86 +dnl + + case "$target" in + i?86-*-*darwin*) + AC_DEFINE(LIBNET_BSDISH_OS) + AC_DEFINE(LIBNET_BSD_BYTE_SWAP) + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP" + ;; + + *) + ;; + + esac + ;; *solaris*) diff --git a/libnet/src/libnet_write.c b/libnet/src/libnet_write.c index 1d967ff..8561bba 100644 --- a/libnet/src/libnet_write.c +++ b/libnet/src/libnet_write.c @@ -33,6 +33,7 @@ */ #include <netinet/in.h> +#include <sys/types.h> #include <netinet/udp.h> #if (HAVE_CONFIG_H) |