[csw-devel] SF.net SVN: gar:[14318] csw/mgar/pkg/nginx/trunk

aigoshin at users.sourceforge.net aigoshin at users.sourceforge.net
Mon Apr 18 14:07:36 CEST 2011


Revision: 14318
          http://gar.svn.sourceforge.net/gar/?rev=14318&view=rev
Author:   aigoshin
Date:     2011-04-18 12:07:36 +0000 (Mon, 18 Apr 2011)

Log Message:
-----------
nginx: release 20110418

Modified Paths:
--------------
    csw/mgar/pkg/nginx/trunk/Makefile

Added Paths:
-----------
    csw/mgar/pkg/nginx/trunk/files/patch.errno

Modified: csw/mgar/pkg/nginx/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nginx/trunk/Makefile	2011-04-18 11:55:29 UTC (rev 14317)
+++ csw/mgar/pkg/nginx/trunk/Makefile	2011-04-18 12:07:36 UTC (rev 14318)
@@ -16,6 +16,8 @@
 
 LICENSE      = LICENSE
 
+PATCHFILES   = patch.errno
+
 # We define upstream file regex so we can be notifed of new upstream software release
 UFILES_REGEX = -(\d+(?:\.\d+)*).tar.gz
 

Added: csw/mgar/pkg/nginx/trunk/files/patch.errno
===================================================================
--- csw/mgar/pkg/nginx/trunk/files/patch.errno	                        (rev 0)
+++ csw/mgar/pkg/nginx/trunk/files/patch.errno	2011-04-18 12:07:36 UTC (rev 14318)
@@ -0,0 +1,26 @@
+Index: nginx-1.0.0/auto/unix
+===================================================================
+--- nginx-1.0.0/auto/unix	(revision 3896)
++++ nginx-1.0.0/auto/unix	(working copy)
+@@ -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 (p == NULL
++                              || strncmp(p, "Unknown error", 13) == 0
++                              || errno == EINVAL)
++                          {
+                               printf("%d", n);
+                               return 0;
+                           }


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list