nginx-0.0.4-2004-06-10-22:36:57 import

This commit is contained in:
Igor Sysoev
2004-06-10 18:36:57 +00:00
parent 5428ae74c0
commit 0ed19ccad1
5 changed files with 189 additions and 65 deletions

View File

@@ -9,6 +9,22 @@ PIPE="-pipe"
CC_TEST_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
# Linux kernel version
version=`grep "#define LINUX_VERSION_CODE" /usr/include/linux/version.h \
| sed -e 's/^.* \(.*\)$/\1/'`
# enable rt signals on Linux 2.4.x
if [ $version -ge 132096 -o $EVENT_RTSIG = YES ]; then
echo " + using rt signals"
have=HAVE_RTSIG . auto/have
EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
EVENT_FOUND=YES
fi
# epoll, EPOLLET version
@@ -30,15 +46,6 @@ if [ $ngx_found = yes ]; then
fi
# rtsig
if [ $EVENT_RTSIG = YES ]; then
have=HAVE_RTSIG . auto/have
EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
fi
# sendfile()
CC_TEST_FLAGS="-D_GNU_SOURCE"