wok-next view 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 source
1 From 57efb14f0519e0b20a789c274db7777f16c98b35 Mon Sep 17 00:00:00 2001
2 From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
3 Date: Sat, 13 Oct 2018 23:10:33 +0200
4 Subject: [PATCH] grefcount: add missing gatomic.h
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Without gatomic.h, build fails on:
10 In file included from garcbox.c:24:0:
11 garcbox.c: In function ‘g_atomic_rc_box_acquire’:
12 grefcount.h:101:13: error: implicit declaration of function ‘g_atomic_int_get’; did you mean ‘__atomic_store’? [-Werror=implicit-function-declaration]
13 (void) (g_atomic_int_get (rc) == G_MAXINT ? 0 : g_atomic_int_inc ((rc))); \
14 ^
15 garcbox.c:292:3: note: in expansion of macro ‘g_atomic_ref_count_inc’
16 g_atomic_ref_count_inc (&real_box->ref_count);
18 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
19 ---
20 glib/grefcount.h | 1 +
21 1 file changed, 1 insertion(+)
23 diff --git a/glib/grefcount.h b/glib/grefcount.h
24 index dec9a5ffb..b6eced1b7 100644
25 --- a/glib/grefcount.h
26 +++ b/glib/grefcount.h
27 @@ -23,6 +23,7 @@
28 #error "Only <glib.h> can be included directly."
29 #endif
31 +#include <glib/gatomic.h>
32 #include <glib/gtypes.h>
34 G_BEGIN_DECLS
35 --
36 2.18.1