[PATCH] build-sys: check for paths.h

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



paths.h doesn't exist on Solaris

Signed-off-by: Fabian Groffen <grobian@xxxxxxxxxx>

diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,7 @@
 	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
--- 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"
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux