From cce807f8e1d68a4959163af156aaa64fd3064001 Mon Sep 17 00:00:00 2001 From: Owen Shepherd Date: Wed, 22 Aug 2012 14:25:15 +0100 Subject: [PATCH] Remove dev_zero_fd from dlmalloc.c (we don't use it - its a dlmalloc unix assumption) --- opt/dlmalloc/dlmalloc.c | 1 - 1 file changed, 1 deletion(-) diff --git a/opt/dlmalloc/dlmalloc.c b/opt/dlmalloc/dlmalloc.c index 183f08a..e0bebcd 100644 --- a/opt/dlmalloc/dlmalloc.c +++ b/opt/dlmalloc/dlmalloc.c @@ -1644,7 +1644,6 @@ unsigned char _BitScanReverse(unsigned long *index, unsigned long mask); is unlikely to be needed, but is supplied just in case. */ #define MMAP_FLAGS (MAP_PRIVATE) -static int dev_zero_fd = -1; /* Cached file descriptor for /dev/zero. */ #define MMAP_DEFAULT(s) ((dev_zero_fd < 0) ? \ (dev_zero_fd = open("/dev/zero", O_RDWR), \ mmap(0, (s), MMAP_PROT, MMAP_FLAGS, dev_zero_fd, 0)) : \ -- 2.40.0