diff options
author | Vlad Glagolev | 2010-11-22 22:38:20 +0300 |
---|---|---|
committer | George Sherwood | 2010-11-24 16:43:52 -0600 |
commit | 79f986b9bffe0a3cacc6b1111375a2c14a70946c (patch) | |
tree | 3a820b1a7bf6af23f4c89f3156b733ebc0830376 | |
parent | 215acc53be3c851effdad7bec2c484f61d90424b (diff) |
net-snmp: fixed type redefinition from dirent.h
(cherry picked from commit 97c974f605ff721dba9327219f7bd5d2b7f40292)
-rwxr-xr-x | net/net-snmp/DETAILS | 1 | ||||
-rw-r--r-- | net/net-snmp/HISTORY | 5 | ||||
-rwxr-xr-x | net/net-snmp/PRE_BUILD | 4 | ||||
-rw-r--r-- | net/net-snmp/dir.patch | 19 |
4 files changed, 29 insertions, 0 deletions
diff --git a/net/net-snmp/DETAILS b/net/net-snmp/DETAILS index 2396715f56..e7c6f31bd8 100755 --- a/net/net-snmp/DETAILS +++ b/net/net-snmp/DETAILS @@ -1,6 +1,7 @@ SPELL=net-snmp VERSION=5.6 SECURITY_PATCH=1 + PATCHLEVEL=1 SOURCE=$SPELL-$VERSION.tar.gz SOURCE2=$SOURCE.asc SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION" diff --git a/net/net-snmp/HISTORY b/net/net-snmp/HISTORY index 4b96a53536..c77cabb5d9 100644 --- a/net/net-snmp/HISTORY +++ b/net/net-snmp/HISTORY @@ -1,3 +1,8 @@ +2010-11-22 Vlad Glagolev <stealth@sourcemage.org> + * DETAILS: PATCHLEVEL=1 + * PRE_BUILD: apply the patch + * dir.patch: added, to fix type redefinition from dirent.h + 2010-10-09 Vlad Glagolev <stealth@sourcemage.org> * DETAILS: updated spell to 5.6 diff --git a/net/net-snmp/PRE_BUILD b/net/net-snmp/PRE_BUILD new file mode 100755 index 0000000000..ce7fa1bcf4 --- /dev/null +++ b/net/net-snmp/PRE_BUILD @@ -0,0 +1,4 @@ +default_pre_build && +cd "$SOURCE_DIRECTORY" && + +patch -p0 < "$SPELL_DIRECTORY/dir.patch" diff --git a/net/net-snmp/dir.patch b/net/net-snmp/dir.patch new file mode 100644 index 0000000000..e835996bf5 --- /dev/null +++ b/net/net-snmp/dir.patch @@ -0,0 +1,19 @@ +--- include/net-snmp/library/system.h.orig 2010-03-25 18:06:26.000000000 +0300 ++++ include/net-snmp/library/system.h 2010-11-22 21:51:43.843976465 +0300 +@@ -59,6 +59,8 @@ + */ + #ifndef MSVC_PERL + ++#ifdef WIN32 ++ + #ifndef HAVE_READDIR + /* + * structure of a directory entry +@@ -87,6 +89,7 @@ + NETSNMP_IMPORT + int closedir(DIR * dirp); + #endif /* HAVE_READDIR */ ++#endif /* WIN32 */ + + #ifndef HAVE_GETTIMEOFDAY + NETSNMP_IMPORT |