diff --git a/cf/grok-type.m4 b/cf/grok-type.m4 index ecbbbbaa3..09473a3e7 100644 --- a/cf/grok-type.m4 +++ b/cf/grok-type.m4 @@ -9,6 +9,9 @@ AC_TRY_COMPILE([ #ifdef HAVE_SYS_BITYPES_H #include #endif +#ifdef HAVE_SYS_BITYPES_H +#include +#endif #ifdef HAVE_NETINET_IN6_MACHTYPES_H #include #endif diff --git a/include/bits.c b/include/bits.c index 9dc35a7b4..308426a0d 100644 --- a/include/bits.c +++ b/include/bits.c @@ -149,6 +149,9 @@ int main(int argc, char **argv) #ifdef HAVE_SYS_BITYPES_H fprintf(f, "#include \n"); #endif +#ifdef HAVE_BIND_BITYPES_H + fprintf(f, "#include \n"); +#endif #ifdef HAVE_NETINET_IN6_MACHTYPES_H fprintf(f, "#include \n"); #endif