summaryrefslogtreecommitdiff
path: root/net/hping/files/patch-memlockall
blob: e613a3f17a22bff7ee3f9df736f517782bc99396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);