From a3357661ee1d5d553294f36e4940e8285c7f1332 Mon Sep 17 00:00:00 2001
From: Darren Tucker <dtucker@zip.com.au>
Date: Sat, 18 Jan 2014 00:03:57 +1100
Subject: [PATCH]  - (dtucker) [readconf.c] Wrap paths.h inside an ifdef. 
 Allows building on    Solaris.

---
 ChangeLog  | 2 ++
 readconf.c | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index fa793d78a..0af27d088 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -41,6 +41,8 @@
  - (dtucker) [configure.ac] Also look in inttypes.h for uintXX_t types.
  - (dtucker) [configure.ac] Have --without-hardening not turn off
    stack-protector since that has a separate flag that's been around a while.
+ - (dtucker) [readconf.c] Wrap paths.h inside an ifdef.  Allows building on
+   Solaris.
 
 20140118
  - (djm) OpenBSD CVS Sync
diff --git a/readconf.c b/readconf.c
index 08e168521..9c7e73d7d 100644
--- a/readconf.c
+++ b/readconf.c
@@ -27,7 +27,9 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <netdb.h>
-#include <paths.h>
+#ifdef HAVE_PATHS_H
+# include <paths.h>
+#endif
 #include <pwd.h>
 #include <signal.h>
 #include <stdarg.h>