diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-10-04 22:26:07 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-10-04 22:26:07 +0000 |
commit | 977216264f4ef4c2ebeb9d30435c17a950fed6e6 (patch) | |
tree | b43b4b36da948adf32ace8f819e5d8e23085947f /include/sys | |
parent | da595aca3aef049535b12fdcec0e77c787286779 (diff) |
Do not stub out functions for mmu-less systems. Hide all
prototypes for functions disabled on mmu-less systems.
Diffstat (limited to 'include/sys')
-rw-r--r-- | include/sys/mman.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sys/mman.h b/include/sys/mman.h index c0dd39e32..a0ac6f981 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -96,6 +96,7 @@ extern int madvise (void *__addr, size_t __len, int __advice) __THROW; extern int posix_madvise (void *__addr, size_t __len, int __advice) __THROW; #endif +#if defined __ARCH_HAS_MMU__ /* Guarantee all whole pages mapped by the range [ADDR,ADDR+LEN) to be memory resident. */ extern int mlock (__const void *__addr, size_t __len) __THROW; @@ -111,6 +112,7 @@ extern int mlockall (int __flags) __THROW; /* All currently mapped pages of the process' address space become unlocked. */ extern int munlockall (void) __THROW; +#endif #ifdef __USE_MISC /* Remap pages mapped by the range [ADDR,ADDR+OLD_LEN) to new length |