]> err.no Git - util-linux/commitdiff
build-sys: check for paths.h
authorFabian Groffen <grobian@gentoo.org>
Mon, 17 Jan 2011 21:15:31 +0000 (22:15 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Jan 2011 22:47:52 +0000 (23:47 +0100)
paths.h doesn't exist on Solaris

Signed-off-by: Fabian Groffen <grobian@gentoo.org>
configure.ac
include/pathnames.h

index 08c5d11c7ea195e46deebdba4650246e7516b439..3c241e913c1951a53a8487b5cb59de734d698f65 100644 (file)
@@ -119,6 +119,7 @@ AC_CHECK_HEADERS(
        locale.h \
        stdint.h \
        inttypes.h \
+       paths.h \
        pty.h \
        mntent.h \
         net/if.h \
index ab21bd785a287903cf39101e4b601f0995dc8681..4faca1fc4817941713a7b207ae092f79d7e78721 100644 (file)
@@ -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"