summaryrefslogtreecommitdiffhomepage
path: root/auto/unix
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-03-12 11:15:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-03-12 11:15:26 +0000
commit9eaabc69ca4401b0a1fbfd27c2265213ab656ff4 (patch)
tree6ef9689e485f07ba958e181607a12bfc7c26285f /auto/unix
parent7fa1c07896a6ec184e665d4f86e7678fa88fef59 (diff)
downloadnginx-9eaabc69ca4401b0a1fbfd27c2265213ab656ff4.tar.gz
nginx-9eaabc69ca4401b0a1fbfd27c2265213ab656ff4.tar.bz2
use sys_errlist[] in signal handler instead
of non Async-Signal-Safe strerror_r()
Diffstat (limited to '')
-rwxr-xr-xauto/unix10
1 files changed, 10 insertions, 0 deletions
diff --git a/auto/unix b/auto/unix
index 687a23a88..728b116d2 100755
--- a/auto/unix
+++ b/auto/unix
@@ -133,6 +133,16 @@ ngx_feature_test="char buf[1024]; long n; n = strerror_r(1, buf, 1024);
. auto/feature
+ngx_feature="sys_errlist[]"
+ngx_feature_name="NGX_HAVE_SYS_ERRLIST"
+ngx_feature_run=yes
+ngx_feature_incs="#include <stdio.h>"
+ngx_feature_path=
+ngx_feature_libs=
+ngx_feature_test="int n = sys_nerr; const char *p = sys_errlist[1];"
+. auto/feature
+
+
ngx_feature="localtime_r()"
ngx_feature_name="NGX_HAVE_LOCALTIME_R"
ngx_feature_run=no