From: Fabian Groffen Date: Mon, 17 Jan 2011 21:15:31 +0000 (+0100) Subject: build-sys: check for paths.h X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf9d41da29a269556180b3107b3f439f1a9ecf1;p=util-linux build-sys: check for paths.h paths.h doesn't exist on Solaris Signed-off-by: Fabian Groffen --- diff --git a/configure.ac b/configure.ac index 08c5d11c..3c241e91 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 ab21bd78..4faca1fc 100644 --- a/include/pathnames.h +++ b/include/pathnames.h @@ -6,7 +6,9 @@ #ifndef PATHNAMES_H #define PATHNAMES_H +#ifdef HAVE_PATHS_H #include +#endif #ifndef __STDC__ # error "we need an ANSI compiler"