Mercurial > hg > nginx
comparison auto/unix @ 4302:52c881519427
o AIX 7 defines sys_nerr in errno.h, therefore <errno.h> included
in the sys_nerr test.
o When sys_nerr and _sys_nerr are missed on a particular platform
and our euristic for a maximum errno detection applied always
print the maximum errno number we reached instead of printing void.[*]
* patch from Maxim Dounin
This commit makes possible to build nginx on AIX 7.1.
author | Maxim Konovalov <maxim@nginx.com> |
---|---|
date | Mon, 21 Nov 2011 11:51:41 +0000 |
parents | b044d6553d52 |
children | c4513d4dd024 4919fb357a5d |
comparison
equal
deleted
inserted
replaced
4301:0688cf5d73ec | 4302:52c881519427 |
---|---|
494 | 494 |
495 | 495 |
496 ngx_feature="sys_nerr" | 496 ngx_feature="sys_nerr" |
497 ngx_feature_name="NGX_SYS_NERR" | 497 ngx_feature_name="NGX_SYS_NERR" |
498 ngx_feature_run=value | 498 ngx_feature_run=value |
499 ngx_feature_incs='#include <stdio.h>' | 499 ngx_feature_incs='#include <errno.h> |
500 #include <stdio.h>' | |
500 ngx_feature_path= | 501 ngx_feature_path= |
501 ngx_feature_libs= | 502 ngx_feature_libs= |
502 ngx_feature_test='printf("%d", sys_nerr);' | 503 ngx_feature_test='printf("%d", sys_nerr);' |
503 . auto/feature | 504 . auto/feature |
504 | 505 |
536 p = strerror(n); | 537 p = strerror(n); |
537 if (errno == EINVAL | 538 if (errno == EINVAL |
538 || p == NULL | 539 || p == NULL |
539 || strncmp(p, "Unknown error", 13) == 0) | 540 || strncmp(p, "Unknown error", 13) == 0) |
540 { | 541 { |
541 printf("%d", n); | 542 break; |
542 return 0; | |
543 } | 543 } |
544 }' | 544 } |
545 printf("%d", n);' | |
545 . auto/feature | 546 . auto/feature |
546 fi | 547 fi |
547 | 548 |
548 | 549 |
549 ngx_feature="localtime_r()" | 550 ngx_feature="localtime_r()" |