X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/f6fb59b11d20222d4648cdceeaadf6ce971a7a9a..refs/heads/master:/ftmacros.h diff --git a/ftmacros.h b/ftmacros.h index 7975463b..2e367a35 100644 --- a/ftmacros.h +++ b/ftmacros.h @@ -64,7 +64,7 @@ /* * We need this to get the versions of socket functions that * use socklen_t. Define it only if it's not already defined, - * so we don't get redefiniton warnings. + * so we don't get redefinition warnings. */ #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED @@ -95,13 +95,17 @@ * * Unfortunately, one thing it has to offer is a strerror_r() * that's not POSIX-compliant, but we deal with that in - * pcap_fmt_errmsg_for_errno(). + * pcapint_fmt_errmsg_for_errno(). * * We don't limit this to, for example, Linux and Cygwin, because * this might, for example, be GNU/HURD or one of Debian's kFreeBSD * OSes ("GNU/FreeBSD"). + * + * Avoid redefining, same as below. */ - #define _GNU_SOURCE + #ifndef _GNU_SOURCE + #define _GNU_SOURCE + #endif /* * We turn on both _DEFAULT_SOURCE and _BSD_SOURCE to try to get