mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
test for maximum errno value, since Solaris has no sys_nerr
This commit is contained in:
parent
2369c149b8
commit
adc7083411
23
auto/unix
23
auto/unix
@ -134,6 +134,29 @@ if [ $ngx_found = no ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if [ $ngx_found = no ]; then
|
||||||
|
|
||||||
|
# Solaris has no sys_nerr
|
||||||
|
ngx_feature='maximum errno'
|
||||||
|
ngx_feature_name=NGX_SYS_NERR
|
||||||
|
ngx_feature_run=value
|
||||||
|
ngx_feature_incs='#include <errno.h>
|
||||||
|
#include <stdio.h>'
|
||||||
|
ngx_feature_path=
|
||||||
|
ngx_feature_libs=
|
||||||
|
ngx_feature_test='int n;
|
||||||
|
for (n = 1; n < 1000; n++) {
|
||||||
|
errno = 0;
|
||||||
|
strerror(n);
|
||||||
|
if (errno == EINVAL) {
|
||||||
|
printf("%d", n);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}'
|
||||||
|
. auto/feature
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
ngx_feature="localtime_r()"
|
ngx_feature="localtime_r()"
|
||||||
ngx_feature_name="NGX_HAVE_LOCALTIME_R"
|
ngx_feature_name="NGX_HAVE_LOCALTIME_R"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
|
Loading…
Reference in New Issue
Block a user