From c508c0170ead2a77f3d1fecabf420a645bc35a4d Mon Sep 17 00:00:00 2001 From: Wes Hardaker Date: Mon, 14 Sep 2009 22:18:24 +0000 Subject: [PATCH] Patch from magfr for 5.5 specific aix build fixes git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@17757 06827809-a52a-0410-b366-d66718629ded --- README.aix | 3 +++ apps/snmpnetstat/if.c | 4 ++++ include/net-snmp/system/aix.h | 3 +++ 3 files changed, 10 insertions(+) diff --git a/README.aix b/README.aix index 6349e0fb00..e25e9b6b98 100644 --- a/README.aix +++ b/README.aix @@ -15,6 +15,9 @@ Starting with net-snmp 5.4.1, we build shared libraries by default on AIX (like on any other platform) using run-time linking. configure forces the use of the required "-brtl" linker flag. +With net-snmp 5.5 the shared library build is broken again but the there is +no forced static build - use --disable-shared when building. + 2) "grep: capacity exceeded" or "sed: Command line is too long" during configure The version of "grep" shipped with AIX versions up to (and including) 5.1 diff --git a/apps/snmpnetstat/if.c b/apps/snmpnetstat/if.c index 372c36406c..03fe850e7a 100644 --- a/apps/snmpnetstat/if.c +++ b/apps/snmpnetstat/if.c @@ -49,8 +49,12 @@ static char *rcsid = "$OpenBSD: if.c,v 1.42 2005/03/13 16:05:50 mpf Exp $"; #if HAVE_NET_IF_H #include #endif +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 1 +#endif +#ifndef _XOPEN_SOURCE_EXTENDED #define _XOPEN_SOURCE_EXTENDED 1 +#endif #include #include "main.h" diff --git a/include/net-snmp/system/aix.h b/include/net-snmp/system/aix.h index 43272f1a7f..02d498120d 100644 --- a/include/net-snmp/system/aix.h +++ b/include/net-snmp/system/aix.h @@ -22,3 +22,6 @@ /* define the extra mib modules that are supported */ #define NETSNMP_INCLUDE_HOST_RESOURCES + +/* the legacy symbol NOACCESS clashes with the system headers. Remove it. */ +#define NETSNMP_NO_LEGACY_DEFINITIONS