diff options
author | Kalev Lember <klember@redhat.com> | 2017-01-30 13:20:11 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2017-01-30 12:38:14 +0000 |
commit | b02e3be83eeb8f3a9c70c597d1bedb595b81a79c (patch) | |
tree | 79437df40f234d37b12d77b092353c8ac69ddaeb /libappstream-glib/as-tag.c | |
parent | 081ced436e3a984d2e4a33c935448b345aec2f95 (diff) | |
download | appstream-glib-b02e3be83eeb8f3a9c70c597d1bedb595b81a79c.tar.gz |
Fix the build with gperf 3.1
gperf 3.1 generates lookup functions that take a size_t length
parameter instead of unsigned int. Test for this at configure time.
Fixes: https://github.com/hughsie/appstream-glib/issues/148
Diffstat (limited to 'libappstream-glib/as-tag.c')
-rw-r--r-- | libappstream-glib/as-tag.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libappstream-glib/as-tag.c b/libappstream-glib/as-tag.c index 8bb9519..faf7eb0 100644 --- a/libappstream-glib/as-tag.c +++ b/libappstream-glib/as-tag.c @@ -35,8 +35,7 @@ #include "as-tag.h" -/* we need to define this now as gperf just writes a big header file */ -const struct tag_data *_as_tag_from_gperf (const char *tag, guint etag); +const struct tag_data *_as_tag_from_gperf (const char *tag, GPERF_LEN_TYPE etag); #include "as-tag-private.h" /** @@ -78,7 +77,7 @@ as_tag_from_string_full (const gchar *tag, AsTagFlags flags) return AS_TAG_UNKNOWN; /* use a perfect hash */ - ky = _as_tag_from_gperf (tag, (guint) strlen (tag)); + ky = _as_tag_from_gperf (tag, (GPERF_LEN_TYPE) strlen (tag)); if (ky != NULL) etag = ky->etag; |