From a3f4b50b6ae0c5321a50077decc078d31124e2f2 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 13 Dec 1998 14:58:26 +0000 Subject: Update. * stdlib/test-canon.c: Define PATH_MAX if the system does not. * string/stratcliff.c: Use MAP_ANON instead of MAP_ANONYMOUS. Patch by UCHIYAMA Yasushi . --- ChangeLog | 4 ++++ stdlib/test-canon.c | 3 +++ string/stratcliff.c | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fdfdddde77..046e311e4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,10 @@ * sysvipc/ftok.c: Likewise. Patch by Franz Sirl . + * stdlib/test-canon.c: Define PATH_MAX if the system does not. + * string/stratcliff.c: Use MAP_ANON instead of MAP_ANONYMOUS. + Patch by UCHIYAMA Yasushi . + 1998-12-13 Andreas Jaeger * sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning. diff --git a/stdlib/test-canon.c b/stdlib/test-canon.c index d06ec4d581..c8be8d2d96 100644 --- a/stdlib/test-canon.c +++ b/stdlib/test-canon.c @@ -28,6 +28,9 @@ #include #include +#ifndef PATH_MAX +# define PATH_MAX 4096 +#endif static char cwd[PATH_MAX]; static size_t cwd_len; diff --git a/string/stratcliff.c b/string/stratcliff.c index ae1b7ae0ca..d8b0bd1b04 100644 --- a/string/stratcliff.c +++ b/string/stratcliff.c @@ -43,9 +43,9 @@ main (int argc, char *argv[]) int result = 0; adr = (char *) mmap (NULL, 3 * size, PROT_READ|PROT_WRITE, - MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); + MAP_PRIVATE|MAP_ANON, -1, 0); dest = (char *) mmap (NULL, 3*size, PROT_READ|PROT_WRITE, - MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); + MAP_PRIVATE|MAP_ANON, -1, 0); if (adr == MAP_FAILED || dest == MAP_FAILED) { if (errno == ENOSYS) -- cgit 1.4.1