pike.git / src / modules / HTTPLoop / configure.in

version» Context lines:

pike.git/src/modules/HTTPLoop/configure.in:25:   #   # NOTE: The test for sendfile is a duplicate of the test in the files module.   # It should probably be moved to the main configure-script.   # Note also that the test in the files module is more complete than this one.   # /grubba 2000-03-26   #   if test "$ac_cv_func_sendfile" = "yes"; then    AC_MSG_CHECKING(if sendfile takes 4(Linux) or 7(FreeBSD) arguments)    AC_CACHE_VAL(pike_cv_freebsd_sendfile, [    AC_TRY_COMPILE([ - #ifdef HAVE_SYS_TYPES_H +    #include <sys/types.h> - #endif /* HAVE_SYS_TYPES_H */ +    #ifdef HAVE_SYS_SOCKET_H   #include <sys/socket.h>   #endif /* HAVE_SYS_SOCKET_H */   #ifdef HAVE_SYS_UIO_H   #include <sys/uio.h>   #endif /* HAVE_SYS_UIO_H */    ], [    return sendfile(0,0,0,0,(void *)0,(void *)0,0);    ], [    # Probably FreeBSD-style, but we need to check that