freebsd-ports/net/hping/files/patch-memlockall
Edwin Groothuis 199e495ede unbreak on -current
PR:		45374
Submitted by:	maintainer
2002-11-17 22:13:12 +00:00

12 lines
252 B
Plaintext

--- 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);