From: Guy Harris Date: Fri, 16 Apr 2010 10:31:04 +0000 (-0700) Subject: Add a comment to the AC_DEFINE for _SUN, matching what we do in libpcap. X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/a9c1563a95ad117bc806ddb34500e1486c9f88dc Add a comment to the AC_DEFINE for _SUN, matching what we do in libpcap. --- diff --git a/acconfig.h b/acconfig.h index 97417969..b877ed88 100644 --- a/acconfig.h +++ b/acconfig.h @@ -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 diff --git a/config.h.in b/config.h.in index 20c3fcf3..eeaae0e3 100644 --- a/config.h.in +++ b/config.h.in @@ -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 @@ -303,6 +300,9 @@ /* 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 diff --git a/configure b/configure index cb51d19c..c562932b 100755 --- 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 diff --git a/configure.in b/configure.in index eb3e5e8b..d6e8292b 100644 --- a/configure.in +++ b/configure.in @@ -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*)