From 0cd2953d4136a72ddb38b54054f63d497b0e5526 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 20 Jan 2020 21:12:17 +0100 Subject: [PATCH] Include stddef.h if available. This is necessary to compile fd_device.c. --- configure.ac | 2 +- src/have.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index d593dadc..dc24f7c7 100644 --- a/configure.ac +++ b/configure.ac @@ -168,7 +168,7 @@ AS_IF([test "x$enable_hardening" != "xno"], dnl Checks for header files. dnl We do this in multiple stages, because unlike Linux all the other operating systems really suck and don't include their own dependencies. -AC_CHECK_HEADERS([syslog.h sys/file.h sys/ioctl.h sys/mman.h sys/param.h sys/resource.h sys/socket.h sys/time.h sys/un.h sys/wait.h netdb.h arpa/inet.h dirent.h getopt.h]) +AC_CHECK_HEADERS([syslog.h sys/file.h sys/ioctl.h sys/mman.h sys/param.h sys/resource.h sys/socket.h sys/time.h sys/un.h sys/wait.h netdb.h arpa/inet.h dirent.h getopt.h stddef.h]) AC_CHECK_HEADERS([net/if.h net/if_types.h net/ethernet.h net/if_arp.h netinet/in_systm.h netinet/in.h netinet/in6.h netpacket/packet.h], [], [], [#include "$srcdir/src/have.h"] ) diff --git a/src/have.h b/src/have.h index 402f8028..318d549f 100644 --- a/src/have.h +++ b/src/have.h @@ -57,6 +57,10 @@ /* Include system specific headers */ +#ifdef HAVE_STDDEF_H +#include +#endif + #ifdef HAVE_SYSLOG_H #include #endif -- 2.20.1