Neither addrtoname.c nor extract.h nor netdissect.h nor print-sll.c
require the header anymore, so do not include it there. Add a missing
conditional include to netdissect.c.
#endif /* what declares ether_ntohost() */
#ifdef NEED_NETINET_IF_ETHER_H
- /*
- * Include diag-control.h before <net/if.h>, which too defines a macro
- * named ND_UNREACHABLE.
- */
- #include "diag-control.h"
#include <net/if.h> /* Needed on some platforms */
#include <netinet/in.h> /* Needed on some platforms */
#include <netinet/if_ether.h>
*/
#include "funcattrs.h"
#include "netdissect.h"
-#include "diag-control.h"
/*
* If we have versions of GCC or Clang that support an __attribute__
#include <smi.h>
#endif
+#ifdef _AIX
+#include "diag-control.h"
+#endif /* _AIX */
+
/*
* Initialize anything that must be initialized before dissecting
* packets.
#include <time.h>
#include "status-exit-codes.h"
#include "funcattrs.h" /* for PRINTFLIKE_FUNCPTR() */
-#include "diag-control.h" /* for ND_UNREACHABLE */
/*
* Data types corresponding to multi-byte integral values within data
#include <config.h>
#ifdef HAVE_NET_IF_H
-/*
- * Include diag-control.h before <net/if.h>, which too defines a macro
- * named ND_UNREACHABLE.
- */
-#include "diag-control.h"
#include <net/if.h>
#endif