mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
nginx-0.0.1-2003-11-26-18:42:18 import
This commit is contained in:
@@ -4,6 +4,10 @@ echo "checking for $NGX_TYPE size"
|
||||
NGX_BYTES=
|
||||
|
||||
echo "#include <sys/types.h>" > autotest.c
|
||||
echo "#include <sys/time.h>" >> autotest.c
|
||||
echo "#include <sys/resource.h>" >> autotest.c
|
||||
echo "$NGX_INTTYPES_H" >> autotest.c
|
||||
echo "$NGX_AUTO_CONFIG" >> autotest.c
|
||||
echo "int main() {" >> autotest.c
|
||||
echo "printf(\"%d\", sizeof($NGX_TYPE));" >> autotest.c
|
||||
echo "return 0; }" >> autotest.c
|
||||
|
||||
@@ -7,10 +7,13 @@ for TYPE in $NGX_TYPE $NGX_TYPES
|
||||
do
|
||||
echo "#include <sys/types.h>" > autotest.c
|
||||
echo "#include <sys/socket.h>" >> autotest.c
|
||||
echo "#include <sys/time.h>" >> autotest.c
|
||||
echo "#include <sys/resource.h>" >> autotest.c
|
||||
echo "#include <netinet/in.h>" >> autotest.c
|
||||
echo "$NGX_INTTYPES_H" >> autotest.c
|
||||
echo "int main() { $TYPE i = 0; return 0; }" >> autotest.c
|
||||
|
||||
eval "$CC -o autotest autotest.c > /dev/null 2>&1"
|
||||
eval "$CC -o autotest autotest.c > $NGX_ERR 2>&1"
|
||||
|
||||
if [ -x autotest ]; then
|
||||
if [ $TYPE = $NGX_TYPE ]; then
|
||||
|
||||
@@ -4,6 +4,7 @@ echo 'checking for uintptr_t'
|
||||
FOUND=NO
|
||||
|
||||
echo "#include <sys/types.h>" > autotest.c
|
||||
echo "$NGX_INTTYPES_H" >> autotest.c
|
||||
echo "int main() { uintptr_t i = 0; return 0; }" >> autotest.c
|
||||
|
||||
eval "$CC -o autotest autotest.c > /dev/null 2>&1"
|
||||
|
||||
Reference in New Issue
Block a user