Add check for ioctl header file.

This commit is contained in:
jcmichelou committed 2017-06-24 16:20:18 +02:00
1 parent 07abf8643b
commit b159565774
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -324,7 +324,7 @@ fi
# Checks for header files.
AC_CHECK_HEADERS([assert.h arpa/inet.h limits.h netdb.h netinet/in.h \
stdlib.h string.h strings.h sys/socket.h sys/time.h \
time.h unistd.h sys/unistd.h syslog.h])
time.h unistd.h sys/unistd.h syslog.h sys/ioctl.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
+3
View File
@@ -19,6 +19,9 @@
# include <sys/socket.h>
# define OPTVAL_T(t) (t)
#endif
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif