File webkit-shm_unlink-moved-to-librt.patch of Package libwebkit

diff -ur webkitgtk-1.10.1/configure.ac webkitgtk-1.10.1.patched/configure.ac
--- webkitgtk-1.10.1/configure.ac	2012-10-17 00:03:04.000000000 +0200
+++ webkitgtk-1.10.1.patched/configure.ac	2012-12-05 09:48:21.122459760 +0100
@@ -206,6 +206,11 @@
                  AC_MSG_WARN([pthread rwlock support is not available]))
 fi
 
+# shm_unlink is moved to librt in newer versions of glibc (>= 2.17)
+AC_CHECK_LIB([rt], [shm_unlink],
+	[RT_LIBS="-lrt"])
+AC_SUBST(RT_LIBS)
+
 # check for libjpeg the way Gtk does it.
 AC_CHECK_LIB(jpeg, jpeg_destroy_decompress,
                    jpeg_ok=yes, jpeg_ok=no
diff -ur webkitgtk-1.10.1/Source/WebKit2/GNUmakefile.am webkitgtk-1.10.1.patched/Source/WebKit2/GNUmakefile.am
--- webkitgtk-1.10.1/Source/WebKit2/GNUmakefile.am	2012-10-16 20:27:14.000000000 +0200
+++ webkitgtk-1.10.1.patched/Source/WebKit2/GNUmakefile.am	2012-12-05 14:18:25.184395655 +0100
@@ -492,6 +492,7 @@
 	$(OPENGL_LIBS) \
 	$(PANGO_LIBS) \
 	$(PNG_LIBS) \
+	$(RT_LIBS) \
 	$(SHLWAPI_LIBS) \
 	$(SQLITE3_LIBS) \
 	$(UNICODE_LIBS) \
openSUSE Build Service is sponsored by