diff options
author | Igor Sysoev <igor@sysoev.ru> | 2003-11-26 18:42:18 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2003-11-26 18:42:18 +0300 |
commit | c0f8d91bde06aeeb53ff16d6c26490f5961f5a31 (patch) | |
tree | 034ba6291b7d4975868371dae533e4ab985c63f5 /auto/types | |
parent | a8fa0a6a37b6e90324e0dcbf4733324199623841 (diff) |
nginx-0.0.1-2003-11-26-18:42:18 import
Diffstat (limited to 'auto/types')
-rw-r--r-- | auto/types/sizeof | 4 | ||||
-rw-r--r-- | auto/types/typedef | 5 | ||||
-rw-r--r-- | auto/types/uintptr_t | 1 |
3 files changed, 9 insertions, 1 deletions
diff --git a/auto/types/sizeof b/auto/types/sizeof index 8f811136e..2e9e9b2ca 100644 --- a/auto/types/sizeof +++ b/auto/types/sizeof @@ -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 diff --git a/auto/types/typedef b/auto/types/typedef index a842542df..c3155c450 100644 --- a/auto/types/typedef +++ b/auto/types/typedef @@ -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 diff --git a/auto/types/uintptr_t b/auto/types/uintptr_t index 93a01a8fa..7c941c0bf 100644 --- a/auto/types/uintptr_t +++ b/auto/types/uintptr_t @@ -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" |