]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
configure: check for libio.h availability
authorMike Frysinger <vapier@gentoo.org>
Mon, 25 Mar 2013 12:31:31 +0000 (08:31 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 25 Mar 2013 14:09:12 +0000 (10:09 -0400)
On some systems (like uClibc), there isn't a libio.h header.  But it
isn't also needed on them.  So check for the header first.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
configure.ac
support/include/sockaddr.h

index f46121973249a2f102b2b67ab30e9798fc0c808a..cc7f3b4b4933c218d2e4cab7369ba5c1afc4e4d7 100644 (file)
@@ -358,7 +358,7 @@ AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h \
                  stdlib.h string.h sys/file.h sys/ioctl.h sys/mount.h \
                  sys/param.h sys/socket.h sys/time.h sys/vfs.h \
                  syslog.h unistd.h com_err.h et/com_err.h \
-                 ifaddrs.h nfs-plugin.h])
+                 ifaddrs.h nfs-plugin.h libio.h])
 
 dnl *************************************************************
 dnl Checks for typedefs, structures, and compiler characteristics
index 72766db60eedcffd5d3afdf96fa14148623b92f8..a1c30f9bea5da5746f80668c5463ba11fc2e7f6f 100644 (file)
 #ifndef NFS_UTILS_SOCKADDR_H
 #define NFS_UTILS_SOCKADDR_H
 
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_LIBIO_H
 #include <libio.h>
+#endif
 #include <stdbool.h>
 #include <sys/socket.h>
 #include <netinet/in.h>