]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Add a comment to the AC_DEFINE for _SUN, matching what we do in libpcap.
authorGuy Harris <[email protected]>
Fri, 16 Apr 2010 10:31:04 +0000 (03:31 -0700)
committerGuy Harris <[email protected]>
Fri, 16 Apr 2010 10:31:04 +0000 (03:31 -0700)
acconfig.h
config.h.in
configure
configure.in

index 97417969a27c7744498f10adfd6571128fbff7ef..b877ed882facbf0ae010d25b876c1b46e5e5a441 100644 (file)
@@ -68,9 +68,6 @@
 /* define if you have getrpcbynumber() */
 #undef HAVE_GETRPCBYNUMBER
 
-/* AIX hack. */
-#undef _SUN
-
 /* Workaround for missing 64-bit formats */
 #undef PRId64
 #undef PRIo64
index 20c3fcf394a9f2386e9d70e7abc809f282936449..eeaae0e357dd2f40dc147ab1554c265668e2b3d8 100644 (file)
@@ -68,9 +68,6 @@
 /* define if you have getrpcbynumber() */
 #undef HAVE_GETRPCBYNUMBER
 
-/* AIX hack. */
-#undef _SUN
-
 /* Workaround for missing 64-bit formats */
 #undef PRId64
 #undef PRIo64
 /* needed on HP-UX */
 #undef _HPUX_SOURCE
 
+/* define on AIX to get certain functions */
+#undef _SUN
+
 /* define if your compiler allows __attribute__((format)) to be applied to
    function pointers */
 #undef __ATTRIBUTE___FORMAT_OK_FOR_FUNCTION_POINTERS
index cb51d19c80575f1dbf3c328feac588019fb8eeda..c562932ba267bd5c6074e199e5205113df6d80c0 100755 (executable)
--- a/configure
+++ b/configure
@@ -11734,7 +11734,8 @@ MAN_MISC_INFO=7
 case "$host_os" in
 
 aix*)
-               cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
 #define _SUN 1
 _ACEOF
 
index eb3e5e8b1ddf32d3158c590d6dacfe9195967e23..d6e8292bd103d2799a53ba1f935b38b9c6c54594 100644 (file)
@@ -803,7 +803,7 @@ case "$host_os" in
 
 aix*)
        dnl Workaround to enable certain features
-       AC_DEFINE(_SUN)
+       AC_DEFINE(_SUN,1,[define on AIX to get certain functions])
        ;;
 
 hpux*)