diff --git a/cf/roken-frag.m4 b/cf/roken-frag.m4 index 781e1d5ee..c54c7d3b7 100644 --- a/cf/roken-frag.m4 +++ b/cf/roken-frag.m4 @@ -430,7 +430,26 @@ AC_NEED_PROTO([#include ], gethostname) AC_NEED_PROTO([#include ], mkstemp) AC_NEED_PROTO([#include ], getusershell) AC_NEED_PROTO([#include ], daemon) -AC_NEED_PROTO([#include ], iruserok) +AC_NEED_PROTO([ +#ifdef HAVE_SYS_TYPES_H +#include +#endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NETINET_IN_H +#include +#endif +#ifdef HAVE_ARPA_INET_H +#include +#endif +#ifdef HAVE_NETDB_H +#include +#endif +#ifdef HAVE_UNISTD_H +#include +#endif], +iruserok) AC_NEED_PROTO([ #ifdef HAVE_SYS_TYPES_H