diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2000-12-09 09:35:55 +0000 |
| commit | 1a37aa566b347fbb2d2196786e1e84a79ffea9d5 (patch) | |
| tree | a816cae9543dbb9277a62d68a91416fb2fb33da3 /libexec/rtld-elf/malloc.c | |
| parent | 2961fc5ac412eec93a03d4badbbf4e01918d864a (diff) | |
Notes
Diffstat (limited to 'libexec/rtld-elf/malloc.c')
| -rw-r--r-- | libexec/rtld-elf/malloc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libexec/rtld-elf/malloc.c b/libexec/rtld-elf/malloc.c index 8aefa41643f0..cb00a204974a 100644 --- a/libexec/rtld-elf/malloc.c +++ b/libexec/rtld-elf/malloc.c @@ -49,6 +49,7 @@ static char *rcsid = "$FreeBSD$"; #include <sys/types.h> #include <err.h> +#include <paths.h> #include <stdlib.h> #include <string.h> #include <unistd.h> @@ -456,9 +457,9 @@ int n; int offset; #ifdef NEED_DEV_ZERO - fd = open("/dev/zero", O_RDWR, 0); + fd = open(_PATH_DEVZERO, O_RDWR, 0); if (fd == -1) - perror("/dev/zero"); + perror(_PATH_DEVZERO); #endif if (pagepool_end - pagepool_start > pagesz) { |
