X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/bec8d36bbdf60dd5dafb2bafbe3e34ecdcc8bfd3..0023eaa78f123676bfa9c5fba72ea4b8a59aaa70:/ftmacros.h?ds=sidebyside diff --git a/ftmacros.h b/ftmacros.h index 3cd75056..ba95c4aa 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 @@ -59,7 +64,7 @@ /* * We need this to get the versions of socket functions that * use socklen_t. Define it only if it's not already defined, - * so we don't get redefiniton warnings. + * so we don't get redefinition warnings. */ #ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED