]> The Tcpdump Group git mirrors - tcpdump/blobdiff - ftmacros.h
PTP: Use ND_LCHECK_U for checking invalid length
[tcpdump] / ftmacros.h
index c9263f6458a806f2e78b8476e4aea123a56c808a..3cd750568785d738bb241577c35d2385029f8557 100644 (file)
   #ifndef _DEFAULT_SOURCE
     #define _DEFAULT_SOURCE
   #endif
-  #define _BSD_SOURCE
+  /* Avoid redefining _BSD_SOURCE if it's already defined as for ex. 1 */
+  #ifndef _BSD_SOURCE
+    #define _BSD_SOURCE
+  #endif
 #endif
 
 #endif