Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 13 Dec 1998 14:58:26 +0000 (14:58 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 13 Dec 1998 14:58:26 +0000 (14:58 +0000)
* 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 <uch@nop.or.jp>.

ChangeLog
stdlib/test-canon.c
string/stratcliff.c

index fdfdddd..046e311 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,10 @@
        * sysvipc/ftok.c: Likewise.
        Patch by Franz Sirl <Franz.Sirl-kernel@lauterbach.com>.
 
+       * 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 <uch@nop.or.jp>.
+
 1998-12-13  Andreas Jaeger  <aj@arthur.rhein-neckar.de> 
  
        * sysdeps/alpha/fpu/fsetexcptflg.c: Avoid -Wparentheses warning. 
index d06ec4d..c8be8d2 100644 (file)
@@ -28,6 +28,9 @@
 #include <unistd.h>
 #include <sys/param.h>
 
+#ifndef PATH_MAX
+# define PATH_MAX 4096
+#endif
 static char    cwd[PATH_MAX];
 static size_t  cwd_len;
 
index ae1b7ae..d8b0bd1 100644 (file)
@@ -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)