From ae32ef647d7ca1c9f5b53d25f8967dc0b42735cb Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 1 Dec 2010 19:22:37 +0000 Subject: [PATCH] fix building by Cygwin: Cygwin defines _sys_nerr instead of sys_nerr, the issue has been introduced in r3788 --- auto/unix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/auto/unix b/auto/unix index 0160661d6..5818180d6 100755 --- a/auto/unix +++ b/auto/unix @@ -119,6 +119,18 @@ ngx_feature_test='printf("%d", sys_nerr);' . auto/feature +# Cygiwn defines _sys_nerr +ngx_feature="_sys_nerr" +ngx_feature_name="NGX_SYS_NERR" +ngx_feature_run=value +ngx_feature_incs='#include + #include ' +ngx_feature_path= +ngx_feature_libs= +ngx_feature_test='printf("%d", _sys_nerr);' +. auto/feature + + ngx_feature="localtime_r()" ngx_feature_name="NGX_HAVE_LOCALTIME_R" ngx_feature_run=no