] check for libio.h availability
Subsystems (2)
PATCH 1/1 ] check for libio.h availability
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 <[email protected]>
--- configure.ac | 2 +- support/include/sockaddr.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)
configure.ac +1 -1
@@ -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
support/include/sockaddr.h +6 -0
@@ -20,7 +20,13 @@#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>
Signature · 1 line
1.8.1.2
Quoted 4 lines · Mike Frysinger
On some systems (like uClibc), there isn't a
libio.hheader. But it isn't also needed on them. So check for the header first.Signed-off-by Mike Frysinger <[email protected]>
Committed...
steved.
Quoted 37 lines
--- configure.ac | 2 +- support/include/sockaddr.h | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-)configure.ac +1
-1@@ -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 characteristicssupport/include/sockaddr.h +6
-0@@ -20,7 +20,13 @@#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>