summaryrefslogtreecommitdiffstats
path: root/common.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-15 16:35:41 +0000
committerRoy Marples <roy@marples.name>2008-05-15 16:35:41 +0000
commit8673924690579224982640dd29cbbbdfd3721bcd (patch)
treea594063091cb0c4e06cebfbc08a68585e5641233 /common.c
parent72bda00bdcb980720a94f662471d6b524f925e16 (diff)
downloaddhcpcd-8673924690579224982640dd29cbbbdfd3721bcd.tar.xz
Fix compile on Linux.
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 4 insertions, 0 deletions
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