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