Fix the build with glib-1.2 (e.g. the tshark build).
PR: 129675
This commit is contained in:
parent
006665ba37
commit
5c8b6caac4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=224314
1 changed files with 12 additions and 0 deletions
12
net/wireshark/files/patch-epan_to_str.c
Normal file
12
net/wireshark/files/patch-epan_to_str.c
Normal file
|
@ -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;
|
Loading…
Reference in a new issue