Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-11-21 09:30:49 +0300
committerIgor Sysoev <igor@sysoev.ru>2003-11-21 09:30:49 +0300
commitd9d0ca12688034d481e2f1f5cf13a098338ec31d (patch)
tree9dca776a24d0bd34064b21d77fe5b6d290510445 /auto/types
parent1ef225254ef3f7fc5470289bdeabad2e31507d55 (diff)
nginx-0.0.1-2003-11-21-09:30:49 import
Diffstat (limited to 'auto/types')
-rw-r--r--auto/types/sizeof7
1 files changed, 4 insertions, 3 deletions
diff --git a/auto/types/sizeof b/auto/types/sizeof
index f24f4b67d..bf7ee3c85 100644
--- a/auto/types/sizeof
+++ b/auto/types/sizeof
@@ -3,7 +3,8 @@ echo "Checking for $NGX_TYPE size"
BYTES=
-echo "int main() {" > autotest.c
+echo "#include <sys/types.h>" > autotest.c
+echo "int main() {" >> autotest.c
echo "printf(\"%d\", sizeof($NGX_TYPE));" >> autotest.c
echo "return 0; }" >> autotest.c
@@ -18,11 +19,11 @@ rm autotest*
case $BYTES in
4)
- NGX_MAX_SIZE=4294967295
+ NGX_MAX_SIZE=2147483647
;;
8)
- NGX_MAX_SIZE=18446744073709551615
+ NGX_MAX_SIZE=9223372036854775807
;;
*)