diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-11-04 07:06:50 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 1999-11-04 07:06:50 +0000 |
commit | 0f679fe43a44ca1f777a1b439063e87226659104 (patch) | |
tree | 0e7d57272152367dc615b3ede522fc53d5e50b14 /packet-atalk.c | |
parent | d7fb503392f1df4eba634666ebf1704fa84c2340 (diff) |
Include <netinet/in.h> before including "global.h", so that if - as
appears to be the case on AIX 4.3.2 - it defines BIG_ENDIAN or
LITTLE_ENDIAN differently from the way "global.h" defines them, and also
defines BYTE_ORDER, we don't get a compiler warning - instead,
"global.h" refrains from defining them (as BYTE_ORDER is defined).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@970 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-atalk.c')
-rw-r--r-- | packet-atalk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packet-atalk.c b/packet-atalk.c index 17022ad3b9..0f2d6bbf69 100644 --- a/packet-atalk.c +++ b/packet-atalk.c @@ -1,7 +1,7 @@ /* packet-atalk.c * Routines for Appletalk packet disassembly (DDP, currently). * - * $Id: packet-atalk.c,v 1.20 1999/11/03 07:06:17 guy Exp $ + * $Id: packet-atalk.c,v 1.21 1999/11/04 07:06:50 guy Exp $ * * Simon Wilkinson <sxw@dcs.ed.ac.uk> * @@ -28,15 +28,15 @@ # include <sys/types.h> #endif +#ifdef HAVE_NETINET_IN_H +# include <netinet/in.h> +#endif + #include <glib.h> #include "globals.h" #include "packet.h" #include "packet-atalk.h" -#ifdef HAVE_NETINET_IN_H -# include <netinet/in.h> -#endif - static int proto_ddp = -1; static int hf_ddp_hopcount = -1; static int hf_ddp_len = -1; |