diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/sys/mman.h | 3 | ||||
-rw-r--r-- | misc/madvise.c | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 29aa09cf7d..0a19fc69b6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-04-19 Ulrich Drepper <drepper@redhat.com> + + * include/sys/mman.h: Mark madvise hidden. + * misc/madvise.c: Add libc_hidden_def. + 2007-04-17 Ulrich Drepper <drepper@redhat.com> [BZ #4368] diff --git a/include/sys/mman.h b/include/sys/mman.h index 8c07a4e2c6..a4687b30f7 100644 --- a/include/sys/mman.h +++ b/include/sys/mman.h @@ -12,4 +12,7 @@ extern int __mprotect (void *__addr, size_t __len, int __prot); /* This one is Linux specific. */ extern void *__mremap (void *__addr, size_t __old_len, size_t __new_len, int __flags, ...); + +libc_hidden_proto (madvise); + #endif diff --git a/misc/madvise.c b/misc/madvise.c index dbef959dd8..aa3eea7db3 100644 --- a/misc/madvise.c +++ b/misc/madvise.c @@ -29,5 +29,6 @@ madvise (__ptr_t addr, size_t len, int advice) __set_errno (ENOSYS); return -1; } +libc_hidden_def (madvise) stub_warning (madvise) #include <stub-tag.h> |