changeset 31504:33510affffb3

(r_alloc_init_fd): Conditionalize on MAP_ANON.
author Dave Love <fx@gnu.org>
date Fri, 08 Sep 2000 14:10:07 +0000
parents f3dc37a3c26a
children 52dc5e4cb096
files src/ralloc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ralloc.c	Fri Sep 08 13:57:04 2000 +0000
+++ b/src/ralloc.c	Fri Sep 08 14:10:07 2000 +0000
@@ -1322,10 +1322,12 @@
 void
 r_alloc_init_fd ()
 {
+#if !MAP_ANON
   /* No anonymous mmap -- we need the file descriptor.  */
   mmap_fd = open ("/dev/zero", O_RDONLY);
   if (mmap_fd < 0)
     fatal ("cannot open /dev/zero");
+#endif
 }
 
 /* Return a region overlapping address range START...END, or null if