]> The Tcpdump Group git mirrors - libpcap/blobdiff - ftmacros.h
CI: Call print_so_deps() on rpcapd in remote enabled build
[libpcap] / ftmacros.h
index a1488e128190953e6c8b386f8e28c3825da9339a..2e367a35eaf1ae90da3e2292ec9275c8fafe38e4 100644 (file)
    * 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