]> The Tcpdump Group git mirrors - tcpdump/blobdiff - ftmacros.h
Makefile.in: don't remove configure and config.h.in in make distclean.
[tcpdump] / ftmacros.h
index c9263f6458a806f2e78b8476e4aea123a56c808a..7975463b3a6924738ef7e1ffa72370f11006ada6 100644 (file)
  * namespace to the maximum extent possible"?
  */
 #if defined(sun) || defined(__sun)
-  #define __EXTENSIONS__
+  /*
+   * On Solaris Clang defines __EXTENSIONS__ automatically.
+   */
+  #ifndef __EXTENSIONS__
+    #define __EXTENSIONS__
+  #endif
 
   /*
    * We also need to define _XPG4_2 in order to get
   #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