diff options
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r-- | devel/glib2/patches/patch-glib_glibconfig.h.in | 24 | ||||
-rw-r--r-- | devel/glib2/patches/patch-glib_gtypes.h | 17 |
2 files changed, 41 insertions, 0 deletions
diff --git a/devel/glib2/patches/patch-glib_glibconfig.h.in b/devel/glib2/patches/patch-glib_glibconfig.h.in new file mode 100644 index 00000000000..7bcb6eeba9a --- /dev/null +++ b/devel/glib2/patches/patch-glib_glibconfig.h.in @@ -0,0 +1,24 @@ +$NetBSD: patch-glib_glibconfig.h.in,v 1.1 2019/06/25 10:57:28 prlw1 Exp $ + +We insist on C99, so size_t exists => use it. +PR pkg/54298 + +--- glib/glibconfig.h.in.orig 2019-06-10 17:47:20.000000000 +0000 ++++ glib/glibconfig.h.in +@@ -74,12 +74,10 @@ typedef unsigned @gint32@ guint32; + #define GLIB_SIZEOF_SIZE_T @glib_size_t@ + #define GLIB_SIZEOF_SSIZE_T @glib_ssize_t@ + +-typedef signed @glib_size_type_define@ gssize; +-typedef unsigned @glib_size_type_define@ gsize; +-#define G_GSIZE_MODIFIER @gsize_modifier@ +-#define G_GSSIZE_MODIFIER @gssize_modifier@ +-#define G_GSIZE_FORMAT @gsize_format@ +-#define G_GSSIZE_FORMAT @gssize_format@ ++#define G_GSIZE_MODIFIER "z" ++#define G_GSSIZE_MODIFIER "z" ++#define G_GSIZE_FORMAT "zu" ++#define G_GSSIZE_FORMAT "zi" + + #define G_MAXSIZE G_MAXU@glib_msize_type@ + #define G_MINSSIZE G_MIN@glib_msize_type@ diff --git a/devel/glib2/patches/patch-glib_gtypes.h b/devel/glib2/patches/patch-glib_gtypes.h new file mode 100644 index 00000000000..25a8d8b667e --- /dev/null +++ b/devel/glib2/patches/patch-glib_gtypes.h @@ -0,0 +1,17 @@ +$NetBSD: patch-glib_gtypes.h,v 1.1 2019/06/25 10:57:28 prlw1 Exp $ + +We insist on C99, so size_t exists => use it. +PR pkg/54298 + +--- glib/gtypes.h.orig 2019-06-10 17:47:20.000000000 +0000 ++++ glib/gtypes.h +@@ -57,6 +57,9 @@ typedef unsigned int guint; + typedef float gfloat; + typedef double gdouble; + ++typedef size_t gsize; ++typedef ssize_t gssize; ++ + /* Define min and max constants for the fixed size numerical types */ + /** + * G_MININT8: (value -128) |