We *do* need <netinet/in.h> on Debian (and probably other Linuxes, and

quite possibly other UNIX-flavored OSes), in order to declare "ntohs()"
and the like.  Put the include back (I guess we could include "global.h"
after including it, or move the byte-order stuff into a separate header
file and include *that* after <netinet.h>, in order to squelch the
complaints somebody saw compiling on AIX).

svn path=/trunk/; revision=969
This commit is contained in:
Guy Harris 1999-11-03 07:06:17 +00:00
parent f817d71424
commit c4a9cde9d1

View File

@ -1,7 +1,7 @@
/* packet-atalk.c
* Routines for Appletalk packet disassembly (DDP, currently).
*
* $Id: packet-atalk.c,v 1.19 1999/11/03 06:18:50 guy Exp $
* $Id: packet-atalk.c,v 1.20 1999/11/03 07:06:17 guy Exp $
*
* Simon Wilkinson <sxw@dcs.ed.ac.uk>
*
@ -33,6 +33,10 @@
#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;