diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2015-02-16 20:24:51 +0100 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2015-02-16 19:29:32 +0000 |
commit | 4765bbc2a906a6ce4f141aa5beb46c553b4667bd (patch) | |
tree | fff5e8a3ee2dd7cb1e3a95cfbc7dbf0677d51d20 | |
parent | febc2e145359c8ebe2e0c1d5a02fa972c5e54d5d (diff) |
RSVD: fix compilation with GLib < 2.22.0
Change-Id: Ia82d42faa766f68e167b1c1affa5307980909fb8
Reviewed-on: https://code.wireshark.org/review/7181
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
-rw-r--r-- | epan/dissectors/packet-rsvd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-rsvd.c b/epan/dissectors/packet-rsvd.c index 9d3fcaeac4..f5049d9a14 100644 --- a/epan/dissectors/packet-rsvd.c +++ b/epan/dissectors/packet-rsvd.c @@ -131,6 +131,14 @@ typedef struct _rsvd_conv_data_t { static rsvd_conv_data_t *rsvd_conv_data = NULL; +#if !GLIB_CHECK_VERSION(2,22,0) +static gboolean +g_int64_equal(gconstpointer v1, gconstpointer v2) +{ + return *((const gint64*) v1) == *((const gint64*) v2); +} +#endif + static proto_tree *top_tree = NULL; static itl_nexus_t * |