summaryrefslogtreecommitdiff
path: root/security/hping/files/patch-memlockall
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-17 22:13:12 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-17 22:13:12 +0000
commit199e495edebd646519baf8c822b2aeb71533f22e (patch)
treed4a20f62f07a7275d2695d97918760f86e711ae5 /security/hping/files/patch-memlockall
parentAdd the pkg-descr for the slave port, mozilla-devel-gtk2. (diff)
unbreak on -current
PR: 45374 Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=70328
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);