From 6034d13a9ed650ee88ae94550adc86ef25441310 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Mon, 11 Dec 2000 01:03:42 +0000 Subject: MFC: add /dev/zero and use PATH_* where possible. --- libexec/rtld-elf/malloc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libexec/rtld-elf') 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 #include +#include #include #include #include @@ -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) { -- cgit v1.3