aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 64b1bce9b00..94104ef535c 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -4726,7 +4726,7 @@ mmap_init (void)
4726 if (mmap_fd <= 0) 4726 if (mmap_fd <= 0)
4727 { 4727 {
4728 /* No anonymous mmap -- we need the file descriptor. */ 4728 /* No anonymous mmap -- we need the file descriptor. */
4729 mmap_fd = open ("/dev/zero", O_RDONLY); 4729 mmap_fd = emacs_open ("/dev/zero", O_RDONLY, 0);
4730 if (mmap_fd == -1) 4730 if (mmap_fd == -1)
4731 fatal ("Cannot open /dev/zero: %s", emacs_strerror (errno)); 4731 fatal ("Cannot open /dev/zero: %s", emacs_strerror (errno));
4732 } 4732 }