At least in my compile environment, we don't need "inet_v6defs.h" to
compile "epan/packet.c", and including it without including <winsock2.h> before it means that, as <winsock2.h> appears to get included after we include "inet_v6defs.h", we get complaints about a redefinition of AF_INET6; removing the include of "inet_v6defs.h" sqelches that warning. If we *do* need "inet_v6defs.h" on some platforms, put it back, but put in an include of <winsock2.h> before it, to keep the warning away - if we ever use AF_INET6 in "epan/packet.c", we want to use the one from <winsock2.h> if it defines it, as that's what the rest of Ethereal uses. svn path=/trunk/; revision=6649
This commit is contained in:
parent
bb928b0c93
commit
0ca2637951
|
@ -1,7 +1,7 @@
|
|||
/* packet.c
|
||||
* Routines for packet disassembly
|
||||
*
|
||||
* $Id: packet.c,v 1.82 2002/11/15 03:10:36 guy Exp $
|
||||
* $Id: packet.c,v 1.83 2002/11/16 21:36:39 guy Exp $
|
||||
*
|
||||
* Ethereal - Network traffic analyzer
|
||||
* By Gerald Combs <gerald@ethereal.com>
|
||||
|
@ -39,10 +39,6 @@
|
|||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
|
||||
#ifdef NEED_INET_V6DEFS_H
|
||||
# include "inet_v6defs.h"
|
||||
#endif
|
||||
|
||||
#include "packet.h"
|
||||
#include "timestamp.h"
|
||||
|
||||
|
|
Loading…
Reference in New Issue