From db5005592f766c6ea77eb9cd2529ddbe328a9b2f Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 17 Dec 2008 05:38:53 +0000 Subject: Fix the build with glib-1.2 (e.g. the tshark build). PR: 129675 --- net/wireshark/files/patch-epan_to_str.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 net/wireshark/files/patch-epan_to_str.c diff --git a/net/wireshark/files/patch-epan_to_str.c b/net/wireshark/files/patch-epan_to_str.c new file mode 100644 index 000000000000..d1f3ebb2ffaf --- /dev/null +++ b/net/wireshark/files/patch-epan_to_str.c @@ -0,0 +1,12 @@ +--- epan/to_str.c.orig 2008-12-17 00:32:48.000000000 -0500 ++++ epan/to_str.c 2008-12-16 21:00:31.000000000 -0500 +@@ -368,6 +368,9 @@ time_secs_to_str_buf(gint32 time, guint3 + const gchar *msign = ""; + gboolean do_comma = FALSE; + ++#ifndef G_MININT32 ++#define G_MININT32 G_MININT ++#endif + if(time == G_MININT32) { /* That Which Shall Not Be Negated */ + g_snprintf(buf, buf_len, "Unable to cope with time value %d", time); + return; -- cgit