Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: ports/civetweb/nacl.patch

Issue 162913002: Use _NEWLIB_VERSION macro to detect newlib. (Closed) Base URL: https://naclports.googlecode.com/svn/trunk/src
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ports/dosbox/nacl.patch » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/civetweb/nacl.patch
diff --git a/ports/civetweb/nacl.patch b/ports/civetweb/nacl.patch
index d2866222f9e69195cdbbb0015ac53582500a9568..43c5bbea7599cdfe738baba0f592f21262034b84 100644
--- a/ports/civetweb/nacl.patch
+++ b/ports/civetweb/nacl.patch
@@ -26,24 +26,10 @@ index 133a1ef..ecd1e27 100644
endif
diff --git a/src/civetweb.c b/src/civetweb.c
-index 3cc395a..d1ff233 100644
+index 3cc395a..35ca367 100644
--- a/src/civetweb.c
+++ b/src/civetweb.c
-@@ -61,6 +61,13 @@
- #define IGNORE_UNUSED_RESULT(a) (void)((a) && 1)
- #endif
-
-+#if defined(__native_client__) && !defined(__GLIBC__)
-+// Newlib doesn't currently implemnt flockfile/funlockfile.
-+// TODO(sbc): remove this once newlib is fixed.
-+#define flockfile(x)
-+#define funlockfile(x)
-+#endif
-+
- #ifndef _WIN32_WCE /* Some ANSI #includes are not available on Windows CE */
- #include <sys/types.h>
- #include <sys/stat.h>
-@@ -222,7 +229,7 @@ struct pollfd {
+@@ -222,7 +222,7 @@ struct pollfd {
#else /* UNIX specific */
#include <sys/wait.h>
#include <sys/socket.h>
@@ -52,6 +38,20 @@ index 3cc395a..d1ff233 100644
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/time.h>
+@@ -330,6 +330,13 @@ typedef int socklen_t;
+ #define MGSQLEN 20
+ #endif
+
++#if defined(__native_client__) && defined(_NEWLIB_VERSION)
++// Newlib doesn't currently implemnt flockfile/funlockfile.
++// TODO(sbc): remove this once newlib is fixed.
++#define flockfile(x)
++#define funlockfile(x)
++#endif
++
+ static const char *http_500_error = "Internal Server Error";
+
+ #if defined(NO_SSL_DL)
diff --git a/src/main.c b/src/main.c
index c8dff6e..97d3264 100644
--- a/src/main.c
« no previous file with comments | « no previous file | ports/dosbox/nacl.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698