From: Roy Marples Date: Thu, 15 May 2008 16:35:41 +0000 (+0000) Subject: Fix compile on Linux. X-Git-Tag: v4.0.2~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8673924690579224982640dd29cbbbdfd3721bcd;p=thirdparty%2Fdhcpcd.git Fix compile on Linux. --- diff --git a/common.c b/common.c index 93a35d02..84429449 100644 --- a/common.c +++ b/common.c @@ -42,6 +42,10 @@ #include "common.h" #include "logger.h" +#ifndef _PATH_DEVNULL +# define _PATH_DEVNULL "/dev/null" +#endif + /* Handy routine to read very long lines in text files. * This means we read the whole line and avoid any nasty buffer overflows. */ ssize_t