diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-04-27 23:39:52 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-04-27 21:42:52 +0000 |
commit | 3b1903c39498dcbba81817e0dd5cb6a13c0f060f (patch) | |
tree | 31e0e595f938ee45b8d349cb45b210c029dd78de /epan/dissectors/packet-mbim.c | |
parent | 5d2e945dbc368fc61c064ec11b8d30925e881ee1 (diff) |
MBIM: fix compilation with GLib versions < 2.22.0
Change-Id: I27e794347dc0988f0f34798cb62f08a11a217176
Reviewed-on: https://code.wireshark.org/review/1400
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mbim.c')
-rw-r--r-- | epan/dissectors/packet-mbim.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/epan/dissectors/packet-mbim.c b/epan/dissectors/packet-mbim.c index 6e36670227..928586e41b 100644 --- a/epan/dissectors/packet-mbim.c +++ b/epan/dissectors/packet-mbim.c @@ -44,6 +44,14 @@ #include "packet-usb.h" #include "packet-mbim.h" +#if !GLIB_CHECK_VERSION(2,22,0) +gboolean +g_int64_equal(gconstpointer v1, gconstpointer v2) +{ + return *((const gint64*) v1) == *((const gint64*) v2); +} +#endif + void proto_register_mbim(void); void proto_reg_handoff_mbim(void); |