X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/6535988a1cc037393230934d004f7c34b134dbdf..refs/heads/master:/ftmacros.h diff --git a/ftmacros.h b/ftmacros.h index ba95c4aa..2e367a35 100644 --- a/ftmacros.h +++ b/ftmacros.h @@ -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