diff options
| author | Dave Love | 2000-09-08 14:10:31 +0000 |
|---|---|---|
| committer | Dave Love | 2000-09-08 14:10:31 +0000 |
| commit | 423193c55298af7adee7999ecfb9c8ef54572afb (patch) | |
| tree | d2ff385215c219b99a7995d2c3a493106f7871c8 /src/ralloc.c | |
| parent | 0460aa783ece2fe09bd7a8f7ec7338c95202b7d0 (diff) | |
| download | emacs-423193c55298af7adee7999ecfb9c8ef54572afb.tar.gz emacs-423193c55298af7adee7999ecfb9c8ef54572afb.zip | |
(r_alloc_init_fd): Conditionalize on MAP_ANON.
Diffstat (limited to 'src/ralloc.c')
| -rw-r--r-- | src/ralloc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ralloc.c b/src/ralloc.c index f6ae887f4c1..65015d5f374 100644 --- a/src/ralloc.c +++ b/src/ralloc.c | |||
| @@ -1322,10 +1322,12 @@ void r_alloc_free P_ ((POINTER_TYPE **ptr)); | |||
| 1322 | void | 1322 | void |
| 1323 | r_alloc_init_fd () | 1323 | r_alloc_init_fd () |
| 1324 | { | 1324 | { |
| 1325 | #if !MAP_ANON | ||
| 1325 | /* No anonymous mmap -- we need the file descriptor. */ | 1326 | /* No anonymous mmap -- we need the file descriptor. */ |
| 1326 | mmap_fd = open ("/dev/zero", O_RDONLY); | 1327 | mmap_fd = open ("/dev/zero", O_RDONLY); |
| 1327 | if (mmap_fd < 0) | 1328 | if (mmap_fd < 0) |
| 1328 | fatal ("cannot open /dev/zero"); | 1329 | fatal ("cannot open /dev/zero"); |
| 1330 | #endif | ||
| 1329 | } | 1331 | } |
| 1330 | 1332 | ||
| 1331 | /* Return a region overlapping address range START...END, or null if | 1333 | /* Return a region overlapping address range START...END, or null if |