X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/a689cf870986a04cf7a8b4fc74cab10e808f3c93..dcae3b01d76f9a040f2a6e3d2c861c25c2d60a73:/ftmacros.h diff --git a/ftmacros.h b/ftmacros.h index c9263f64..7975463b 100644 --- a/ftmacros.h +++ b/ftmacros.h @@ -45,7 +45,12 @@ * 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 @@ -113,7 +118,10 @@ #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