From: Guus Sliepen Date: Mon, 20 Jan 2020 20:12:17 +0000 (+0100) Subject: Include stddef.h if available. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0cd2953d4136a72ddb38b54054f63d497b0e5526;p=oweals%2Ftinc.git Include stddef.h if available. This is necessary to compile fd_device.c. --- diff --git a/configure.ac b/configure.ac index d593dad..dc24f7c 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 402f802..318d549 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