summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2005-09-07 23:34:32 +0000
committerStef Walter <stef@memberwebs.com>2005-09-07 23:34:32 +0000
commit84c545f775eee2ca9d4ac7f0aa3ba10cf142720f (patch)
treecb84ad920f9f7865febcad328790924c94cbf601 /common
parent41a65ce885872f04074061f00414b8d4fbab0caf (diff)
Fix build problem when _PATH_TMP is defined
Diffstat (limited to 'common')
-rw-r--r--common/compat.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/common/compat.h b/common/compat.h
index addf815..746cd4f 100644
--- a/common/compat.h
+++ b/common/compat.h
@@ -121,8 +121,13 @@ void vwarnx(const char *fmt, va_list ap);
#ifdef HAVE_PATHS_H
#include <paths.h>
-#else
+#endif
+
+#ifndef _PATH_DEVNULL
#define _PATH_DEVNULL "/dev/null"
+#endif
+
+#ifndef _PATH_TMP
#define _PATH_TMP "/tmp"
#endif