Welcome! Log In Create A New Profile

Advanced

Re: nginx-1.0.1

May 04, 2011 08:08AM
По-моему лишняя кавычка в ngx_feature_incs:

--- a/auto/unix Tue Apr 12 00:00:00 2011 +0400
+++ b/auto/unix Wed May 04 15:09:05 2011 +0300
@@ -141,14 +141,19 @@
ngx_feature_name=NGX_SYS_NERR
ngx_feature_run=value
ngx_feature_incs='#include <errno.h>
+ #include <string.h>'
#include <stdio.h>'
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test='int n;
+ char *p;
for (n = 1; n < 1000; n++) {
errno = 0;
- strerror(n);
- if (errno == EINVAL) {
+ p = strerror(n);
+ if (errno == EINVAL
+ || p == NULL
+ || strncmp(p, "Unknown error", 13) == 0)
+ {
printf("%d", n);
return 0;
}
Subject Author Posted

nginx-1.0.1

Igor Sysoev May 03, 2011 08:16AM

Re: nginx-1.0.1

jjjx128 May 04, 2011 08:08AM

Re: nginx-1.0.1

Igor Sysoev May 04, 2011 08:16AM

Re: nginx-1.0.1

Vladimir Rusinov May 04, 2011 08:48AM

Re: nginx-1.0.1

Igor Sysoev May 04, 2011 09:08AM

Re: nginx-1.0.1

Vladimir Rusinov May 04, 2011 09:16AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 251
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready