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

Unified Diff: patches/xopen_source.patch

Issue 141063008: Add support for QNX Neutrino. Base URL: https://chromium.googlesource.com/chromium/deps/icu46.git@master
Patch Set: Undo change to _XOPEN_SOURCE_EXTENDED 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 | « patches/si_value.undef.patch ('k') | source/common/putil.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: patches/xopen_source.patch
diff --git a/patches/xopen_source.patch b/patches/xopen_source.patch
new file mode 100644
index 0000000000000000000000000000000000000000..964951c3df42cabd56d7fb75483028c459156cc6
--- /dev/null
+++ b/patches/xopen_source.patch
@@ -0,0 +1,28 @@
+--- source/common/putil.c
++++ source/common/putil.c
+@@ -37,15 +37,17 @@
+ ******************************************************************************
+ */
+
+-/* Define _XOPEN_SOURCE for Solaris and friends. */
+-/* NetBSD needs it to be >= 4 */
+-#if !defined(_XOPEN_SOURCE)
+-#if __STDC_VERSION__ >= 199901L
+-/* It is invalid to compile an XPG3, XPG4, XPG4v2 or XPG5 application using c99 on Solaris */
+-#define _XOPEN_SOURCE 600
++/* Define _XOPEN_SOURCE for access to POSIX functions. */
++#ifdef _XOPEN_SOURCE
++ /* Use the predefined value. */
+ #else
+-#define _XOPEN_SOURCE 4
+-#endif
++ /*
++ * Version 6.0:
++ * The Open Group Base Specifications Issue 6 (IEEE Std 1003.1, 2004 Edition)
++ * also known as
++ * SUSv3 = Open Group Single UNIX Specification, Version 3 (UNIX03)
++ */
++# define _XOPEN_SOURCE 600
+ #endif
+
+ /* Make sure things like readlink and such functions work.
« no previous file with comments | « patches/si_value.undef.patch ('k') | source/common/putil.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698