summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Richardson <mcr@sandelman.ca>2016-07-09 17:22:13 -0400
committerMichael Richardson <mcr@sandelman.ca>2016-07-09 17:22:18 -0400
commita9f4d1c2997aa355c3d29c992f47ba45a11c291f (patch)
tree36c52f7e55df7856c6af9ec7e95c301f85aebcd6
parent292d58b784d33d1aebacae14794b4fcb89580360 (diff)
downloadtcpdump-a9f4d1c2997aa355c3d29c992f47ba45a11c291f.tar.gz
added some minor protection against multiple inclusion
-rwxr-xr-xnetdissect-stdinc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/netdissect-stdinc.h b/netdissect-stdinc.h
index e201afa4..c7070f0a 100755
--- a/netdissect-stdinc.h
+++ b/netdissect-stdinc.h
@@ -319,6 +319,7 @@ typedef char* caddr_t;
* define struct in6_addr so that we can use it for IPv6 addresses.
*/
#ifndef HAVE_OS_IPV6_SUPPORT
+#ifndef AF_INET6
#define AF_INET6 24
struct in6_addr {
@@ -329,11 +330,12 @@ struct in6_addr {
} __u6_addr; /* 128-bit IP6 address */
};
#endif
+#endif
#ifndef NI_MAXHOST
#define NI_MAXHOST 1025
#endif
-
+
#ifndef INET_ADDRSTRLEN
#define INET_ADDRSTRLEN 16
#endif