include sys/types.h too when checking for headers as otherwise this breaks

on Solaris and FreeBSD. At least.
pull/1/head
Daniel Stenberg 20 years ago
parent 77244a784f
commit 2a0239bab1
  1. 3
      configure.ac

@ -71,6 +71,9 @@ AC_CHECK_HEADERS(
arpa/nameser_compat.h \ arpa/nameser_compat.h \
arpa/inet.h, , , arpa/inet.h, , ,
[ [
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
dnl We do this default-include simply to make sure that the nameser_compat.h dnl We do this default-include simply to make sure that the nameser_compat.h
dnl header *REALLY* can be include after the new nameser.h. It seems AIX 5.1 dnl header *REALLY* can be include after the new nameser.h. It seems AIX 5.1
dnl (and others?) is not designed to allow this. dnl (and others?) is not designed to allow this.

Loading…
Cancel
Save