]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Do not define _SUN on AIX. [skip ci]
authorDenis Ovsienko <[email protected]>
Tue, 26 Mar 2024 20:59:44 +0000 (20:59 +0000)
committerDenis Ovsienko <[email protected]>
Tue, 26 Mar 2024 20:59:44 +0000 (20:59 +0000)
Setting the macro makes no difference on AIX 7.1, see also libpcap
commit be724d5.

CMakeLists.txt
cmakeconfig.h.in
configure.ac

index d38e4b3bea2d5056c12b044cbdc165af3abf764b..713866ec94a20eb1e47fc3bc21abd74e27ed59a9 100644 (file)
@@ -1314,10 +1314,7 @@ file(GLOB PROJECT_SOURCE_LIST_H
 #
 set(MAN_FILE_FORMATS 5)
 set(MAN_MISC_INFO 7)
 #
 set(MAN_FILE_FORMATS 5)
 set(MAN_MISC_INFO 7)
-if(CMAKE_SYSTEM_NAME STREQUAL "AIX")
-    # Workaround to enable certain features
-    set(_SUN TRUE)
-elseif(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
+if(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
     #
     # Use System V conventions for man pages.
     #
     #
     # Use System V conventions for man pages.
     #
index 52794e5db9916ca8358e0fc64fad6c87b57088b2..6a6b393e4abeae39306fc46c0fbb9479a25fade1 100644 (file)
 /* define if should drop privileges by default */
 #cmakedefine WITH_USER "@WITH_USER@"
 
 /* define if should drop privileges by default */
 #cmakedefine WITH_USER "@WITH_USER@"
 
-/* define on AIX to get certain functions */
-#cmakedefine _SUN 1
-
 /* Define to `uint16_t' if u_int16_t not defined. */
 #cmakedefine u_int16_t 1
 
 /* Define to `uint16_t' if u_int16_t not defined. */
 #cmakedefine u_int16_t 1
 
index 78c9b1bedc2a30ff51aabadd01c26d2e9e3f25d2..26128d6d5a716c2484e02106ebba424a1bf72bc3 100644 (file)
@@ -715,11 +715,6 @@ MAN_FILE_FORMATS=5
 MAN_MISC_INFO=7
 case "$host_os" in
 
 MAN_MISC_INFO=7
 case "$host_os" in
 
-aix*)
-       dnl Workaround to enable certain features
-       AC_DEFINE(_SUN,1,[define on AIX to get certain functions])
-       ;;
-
 hpux*)
        #
        # Use System V conventions for man pages.
 hpux*)
        #
        # Use System V conventions for man pages.