summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--include/pathnames.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 08c5d11c7..3c241e913 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,7 @@ AC_CHECK_HEADERS(
locale.h \
stdint.h \
inttypes.h \
+ paths.h \
pty.h \
mntent.h \
net/if.h \
diff --git a/include/pathnames.h b/include/pathnames.h
index ab21bd785..4faca1fc4 100644
--- a/include/pathnames.h
+++ b/include/pathnames.h
@@ -6,7 +6,9 @@
#ifndef PATHNAMES_H
#define PATHNAMES_H
+#ifdef HAVE_PATHS_H
#include <paths.h>
+#endif
#ifndef __STDC__
# error "we need an ANSI compiler"