# the equivalent file. This avoids having to wrap those includes in
# '#ifdef HAVE_FOO_H'. If we create any such headers, add the path to includes.
compatincludes=no
-AC_CHECK_HEADERS([ifaddrs.h paths.h poll.h stdint.h sys/stat.h sys/time.h time.h util.h], [], [
- compatincludes="`pwd`/openbsd-compat/include"
- header="$compatincludes/$ac_header"
- dir=`dirname "$header"`
- mkdir -p "$dir"
- case "$ac_header" in
- poll.h) echo '#ifdef HAVE_SYS_POLL_H'
- echo '#include <sys/poll.h>'
- echo '#endif' ;;
- *) ;;
- esac >"$header"
+AC_CHECK_HEADERS([ \
+ ifaddrs.h \
+ paths.h \
+ poll.h \
+ stdint.h \
+ sys/stat.h \
+ sys/time.h \
+ time.h \
+ util.h], [], [
+ compatincludes="`pwd`/openbsd-compat/include"
+ header="$compatincludes/$ac_header"
+ dir=`dirname "$header"`
+ mkdir -p "$dir"
+ case "$ac_header" in
+ poll.h) echo '#ifdef HAVE_SYS_POLL_H'
+ echo '#include <sys/poll.h>'
+ echo '#endif' ;;
+ *) ;;
+ esac >"$header"
])
if test "$compatincludes" != "no"; then
CPPFLAGS="$CPPFLAGS -I$compatincludes"