summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-27 19:01:37 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-11-27 19:01:37 +0000
commit764543e73426fd00741483ff830cf09bfb73752f (patch)
tree27b8bad85c18469e593d30ee137fdb5fe1a16af4 /auto
parent0e499db3ed63432cfacd08282cce1d42b568b567 (diff)
downloadnginx-764543e73426fd00741483ff830cf09bfb73752f.tar.gz
nginx-764543e73426fd00741483ff830cf09bfb73752f.tar.bz2
nginx-0.0.1-2003-11-27-22:01:37 import
Diffstat (limited to 'auto')
-rw-r--r--auto/func2
-rw-r--r--auto/os/linux3
-rw-r--r--auto/os/solaris1
3 files changed, 3 insertions, 3 deletions
diff --git a/auto/func b/auto/func
index 5cde42826..5a291d874 100644
--- a/auto/func
+++ b/auto/func
@@ -9,7 +9,7 @@ echo "$NGX_UNISTD_H" > autotest.c
echo "$NGX_FUNC_INC" >> autotest.c
echo "int main() { $NGX_FUNC_TEST; return 0; }" >> autotest.c
-eval "$CC $CC_TEST_FLAGS -o autotest autotest.c > $NGX_ERR 2>&1"
+eval "$CC $CC_TEST_FLAGS -o autotest autotest.c $NGX_FUNC_LIBS > $NGX_ERR 2>&1"
if [ -x autotest ]; then
echo " + $NGX_FUNC found"
diff --git a/auto/os/linux b/auto/os/linux
index a488c4de1..bf5092aba 100644
--- a/auto/os/linux
+++ b/auto/os/linux
@@ -9,8 +9,7 @@ ZLIB_LIB="-lz"
# TODO check sendfile64()
-#CC_TEST_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
-CC_TEST_FLAGS="-D_GNU_SOURCE"
+CC_TEST_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
# STUB
CORE_SRCS="$CORE_SRCS $LINUX_SENDFILE_SRCS"
diff --git a/auto/os/solaris b/auto/os/solaris
index 008eda655..6bc2a6f82 100644
--- a/auto/os/solaris
+++ b/auto/os/solaris
@@ -22,6 +22,7 @@ fi
NGX_FUNC_INC="#include <sys/sendfile.h>"
+NGX_FUNC_LIBS="-lsendfile"
NGX_FUNC_TEST="int fd = 1; sendfilevec_t vec[1];
size_t sent = 1; ssize_t n;
n = sendfilev(fd, vec, 1, &sent)"