Use MAP_ANON instead of MAP_ANONYMOUS.
authordrepper <drepper>
Sun, 13 Dec 1998 14:58:16 +0000 (14:58 +0000)
committerdrepper <drepper>
Sun, 13 Dec 1998 14:58:16 +0000 (14:58 +0000)
string/stratcliff.c

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)