summaryrefslogtreecommitdiff
path: root/security/hping/files/patch-memunlockall
diff options
context:
space:
mode:
Diffstat (limited to 'security/hping/files/patch-memunlockall')
-rw-r--r--security/hping/files/patch-memunlockall11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/hping/files/patch-memunlockall b/security/hping/files/patch-memunlockall
new file mode 100644
index 000000000000..4a67466433f7
--- /dev/null
+++ b/security/hping/files/patch-memunlockall
@@ -0,0 +1,11 @@
+--- memunlockall.c.orig Sun Nov 17 18:04:44 2002
++++ memunlockall.c Sun Nov 17 18:04:43 2002
+@@ -13,7 +13,7 @@
+
+ int memunlockall(void)
+ {
+-#ifdef _POSIX_MEMLOCK
++#if _POSIX_MEMLOCK == 1
+ return ( munlockall() );
+ #endif
+ return(-1);