$NetBSD: patch-ac,v 1.1 2011/10/28 17:13:26 tez Exp $ Correct location of errno.h to standard Remove use of _PATH_DEVNULL which is apparently linux only --- src/logsurfer.c.orig 2011-10-28 10:45:07.015975100 -0500 +++ src/logsurfer.c 2011-10-28 10:45:13.514116000 -0500 @@ -47,7 +47,7 @@ #include #include #include -#include +/*#include */ #if TIME_WITH_SYS_TIME #include @@ -76,7 +76,7 @@ #include #endif -#include +#include #include /* local includes */ @@ -323,7 +323,7 @@ exit(0); } - if ( (fd = open(_PATH_DEVNULL, O_RDWR, 0)) < 0) { + if ( (fd = open("/dev/null", O_RDWR, 0)) < 0) { (void) fprintf(stderr, "could not daemonize: %s\n", strerror(errno)); exit(11); }