[gtk-osx] [Bug 52] Patch for libproxy with SDK10.7 string.h
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] [Bug 52] Patch for libproxy with SDK10.7 string.h
- Date: Thu, 20 Oct 2011 20:10:52 +0000 (UTC)
commit 72446c4eacab1532fef0dc2b4cc238e0280c4bf9
Author: John Ralls <jralls ceridwen us>
Date: Thu Oct 20 13:10:03 2011 -0700
[Bug 52] Patch for libproxy with SDK10.7 string.h
string.h now requires that _POSIX_C_SOURCE be defined to a version value (in this case, 200112L) rather than just defined.
modulesets-stable/gtk-osx-unsupported.modules | 4 +++-
patches/libproxy-Bug-052-POSIX_C_SOURCE.patch | 13 +++++++++++++
2 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/modulesets-stable/gtk-osx-unsupported.modules b/modulesets-stable/gtk-osx-unsupported.modules
index 60d015d..c146645 100644
--- a/modulesets-stable/gtk-osx-unsupported.modules
+++ b/modulesets-stable/gtk-osx-unsupported.modules
@@ -66,7 +66,9 @@
<!-- Libsoup doesn't work with newer versions of libproxy -->
<cmake id='libproxy' cmakeargs="-DWITH_PYTHON=OFF">
<branch version='0.4.7' module='libproxy-0.4.7.tar.gz'
- repo='libproxy.google.com'/>
+ repo='libproxy.google.com'>
+ <patch file="http://git.gnome.org/browse/gtk-osx/plain/patches/libproxy-Bug-052-POSIX_C_SOURCE.patch" strip="1"/>
+ </branch>
<dependencies>
<dep package="cmake"/>
</dependencies>
diff --git a/patches/libproxy-Bug-052-POSIX_C_SOURCE.patch b/patches/libproxy-Bug-052-POSIX_C_SOURCE.patch
new file mode 100644
index 0000000..e7efc3e
--- /dev/null
+++ b/patches/libproxy-Bug-052-POSIX_C_SOURCE.patch
@@ -0,0 +1,13 @@
+Index: libproxy/CMakeLists.txt
+===================================================================
+--- a/libproxy/CMakeLists.txt (revision 823)
++++ b/libproxy/CMakeLists.txt (working copy)
+@@ -6,7 +6,7 @@
+ if (WIN32)
+ add_definitions(-D_CRT_SECURE_NO_WARNINGS=1)
+ else(WIN32)
+- add_definitions(-D_POSIX_C_SOURCE=1)
++ add_definitions(-D_POSIX_C_SOURCE=200112L)
+ set(CMAKE_CXX_FLAGS "-fvisibility=hidden ${CMAKE_CXX_FLAGS}")
+ endif(WIN32)
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]