wok-next diff glib/stuff/patches/grefcount.patch @ rev 21071
Update atkmm, cairo, cmake, db, elfutils, emacs, glib, glib-networking, glibmm, gobject-introspection, libsigc++, meson, openssl, zstd
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 13 00:46:54 2018 +0200 (2018-12-13) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/glib/stuff/patches/grefcount.patch Thu Dec 13 00:46:54 2018 +0200 1.3 @@ -0,0 +1,36 @@ 1.4 +From 57efb14f0519e0b20a789c274db7777f16c98b35 Mon Sep 17 00:00:00 2001 1.5 +From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 1.6 +Date: Sat, 13 Oct 2018 23:10:33 +0200 1.7 +Subject: [PATCH] grefcount: add missing gatomic.h 1.8 +MIME-Version: 1.0 1.9 +Content-Type: text/plain; charset=UTF-8 1.10 +Content-Transfer-Encoding: 8bit 1.11 + 1.12 +Without gatomic.h, build fails on: 1.13 +In file included from garcbox.c:24:0: 1.14 +garcbox.c: In function ‘g_atomic_rc_box_acquire’: 1.15 +grefcount.h:101:13: error: implicit declaration of function ‘g_atomic_int_get’; did you mean ‘__atomic_store’? [-Werror=implicit-function-declaration] 1.16 + (void) (g_atomic_int_get (rc) == G_MAXINT ? 0 : g_atomic_int_inc ((rc))); \ 1.17 + ^ 1.18 +garcbox.c:292:3: note: in expansion of macro ‘g_atomic_ref_count_inc’ 1.19 + g_atomic_ref_count_inc (&real_box->ref_count); 1.20 + 1.21 +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 1.22 +--- 1.23 + glib/grefcount.h | 1 + 1.24 + 1 file changed, 1 insertion(+) 1.25 + 1.26 +diff --git a/glib/grefcount.h b/glib/grefcount.h 1.27 +index dec9a5ffb..b6eced1b7 100644 1.28 +--- a/glib/grefcount.h 1.29 ++++ b/glib/grefcount.h 1.30 +@@ -23,6 +23,7 @@ 1.31 + #error "Only <glib.h> can be included directly." 1.32 + #endif 1.33 + 1.34 ++#include <glib/gatomic.h> 1.35 + #include <glib/gtypes.h> 1.36 + 1.37 + G_BEGIN_DECLS 1.38 +-- 1.39 +2.18.1