summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/mlock.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-10-04 22:26:07 +0000
committerEric Andersen <andersen@codepoet.org>2005-10-04 22:26:07 +0000
commit977216264f4ef4c2ebeb9d30435c17a950fed6e6 (patch)
treeb43b4b36da948adf32ace8f819e5d8e23085947f /libc/sysdeps/linux/common/mlock.c
parentda595aca3aef049535b12fdcec0e77c787286779 (diff)
Do not stub out functions for mmu-less systems. Hide all
prototypes for functions disabled on mmu-less systems.
Diffstat (limited to 'libc/sysdeps/linux/common/mlock.c')
-rw-r--r--libc/sysdeps/linux/common/mlock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/mlock.c b/libc/sysdeps/linux/common/mlock.c
index 025f8e94a..aa6bbb63b 100644
--- a/libc/sysdeps/linux/common/mlock.c
+++ b/libc/sysdeps/linux/common/mlock.c
@@ -9,6 +9,6 @@
#include "syscalls.h"
#include <sys/mman.h>
-# if defined __ARCH_HAS_MMU__ && defined __NR_mlock
+#if defined __ARCH_HAS_MMU__ && defined __NR_mlock
_syscall2(int, mlock, const void *, addr, size_t, len);
-# endif
+#endif