summaryrefslogtreecommitdiff
path: root/tcpdump-stdinc.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-04-04 14:05:23 -0700
committerGuy Harris <guy@alum.mit.edu>2010-04-04 14:05:23 -0700
commit610f938c11e6abfe3a710ce0f4684ecedc264aef (patch)
tree9c29711c9a85e5a759b1e40320b2a1b20c41f887 /tcpdump-stdinc.h
parent3938c9fe904ca2106dd8ecaf602ae068dda414c2 (diff)
downloadtcpdump-610f938c11e6abfe3a710ce0f4684ecedc264aef.tar.gz
OS X has its own optimized ntoh[ls]; use them, don't define our own.
Diffstat (limited to 'tcpdump-stdinc.h')
-rw-r--r--tcpdump-stdinc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpdump-stdinc.h b/tcpdump-stdinc.h
index c437cc10..5aba8fdc 100644
--- a/tcpdump-stdinc.h
+++ b/tcpdump-stdinc.h
@@ -147,7 +147,7 @@ typedef char* caddr_t;
#define FOPEN_WRITE_BIN FOPEN_WRITE_TXT
#endif
-#if defined(__GNUC__) && defined(__i386__) && !defined(__ntohl)
+#if defined(__GNUC__) && defined(__i386__) && !defined(__APPLE__) && !defined(__ntohl)
#undef ntohl
#undef ntohs
#undef htonl