diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-08-20 19:38:23 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-08-20 19:38:23 +0000 |
commit | 0716c4fc9fff70870e28f84d18ddbce1db162101 (patch) | |
tree | 9deda8f5f8b208dfbbd7d99174109fc8a3fd031e | |
parent | 42c8fdd8f1d3245a0abf957fc9f0a6eb35145643 (diff) | |
download | glibc-0716c4fc9fff70870e28f84d18ddbce1db162101.zip glibc-0716c4fc9fff70870e28f84d18ddbce1db162101.tar.gz glibc-0716c4fc9fff70870e28f84d18ddbce1db162101.tar.bz2 |
Include <string.h> in sysdeps/unix/sysv/linux/mmap64.c.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/mmap64.c | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -1,5 +1,7 @@ 2013-08-20 Joseph Myers <joseph@codesourcery.com> + * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>. + * sysdeps/unix/sysv/linux/mmap64.c (__mmap64) [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page size. Use __ffs to determine corresponding shift. diff --git a/sysdeps/unix/sysv/linux/mmap64.c b/sysdeps/unix/sysv/linux/mmap64.c index 4ba686c..7d367ca 100644 --- a/sysdeps/unix/sysv/linux/mmap64.c +++ b/sysdeps/unix/sysv/linux/mmap64.c @@ -19,6 +19,7 @@ #include <errno.h> #include <unistd.h> #include <sys/mman.h> +#include <string.h> #include <sysdep.h> #include <sys/syscall.h> |