]> 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:33 +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 94bd5d7b0715bdcd07503f5434d2f39367dc0c4b..b5d889820ae728668117c4ea7f12ad2602a55bf3 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 9ae7ba187b689b2bbe6c2164cfedec9bd3805dae..57f5006963b7d5e86c879b20462fdfd9c968f2b6 100755 (executable)
--- a/configure
+++ b/configure
@@ -9739,7 +9739,8 @@ MAN_MISC_INFO=7
 case "$host_os" in
 
 aix*)
-               cat >>confdefs.h <<\_ACEOF
+
+cat >>confdefs.h <<\_ACEOF
 #define _SUN 1
 _ACEOF
 
index c02ef39e925278a42b63c4853ca9523491868f2d..53c44c354486002999a440103564dcfc9407b848 100644 (file)
@@ -821,7 +821,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*)