Skip to content

Commit

Permalink
Patch from magfr for 5.5 specific aix build fixes
Browse files Browse the repository at this point in the history
git-svn-id: file:///home/hardaker/lib/sf-bkups/net-snmp-convert-svnrepo/trunk@17757 06827809-a52a-0410-b366-d66718629ded
  • Loading branch information
Wes Hardaker committed Sep 14, 2009
1 parent 823dc4a commit c508c01
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.aix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions apps/snmpnetstat/if.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <net/if.h>
#endif
#ifndef _XOPEN_SOURCE
#define _XOPEN_SOURCE 1
#endif
#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include <signal.h>

#include "main.h"
Expand Down
3 changes: 3 additions & 0 deletions include/net-snmp/system/aix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit c508c01

Please sign in to comment.