Skip to content

Commit

Permalink
added some minor protection against multiple inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr committed Jul 9, 2016
1 parent 292d58b commit a9f4d1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion netdissect-stdinc.h
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit a9f4d1c

Please sign in to comment.