Blame wireshark-0010-Patch-fixing-the-wireshark-autoconf-macros.patch

867676
From: Patrick Monnerat <patrick.monnerat@dh.com>
867676
Date: Fri, 23 Oct 2015 11:23:11 -0400
867676
Subject: [PATCH] Patch fixing the wireshark autoconf macros.
867676
867676
When configuring a project using a wireshark detection macro on a 64-bit
867676
system, the detection fails because a configuration test program
867676
crashes.
867676
867676
epan/epan.h include is missing in configuration test program. This is
867676
needed to define epan_get_version() as char *. Failure to doing so uses
867676
a 32-bit integer as a string address --> segfault.
867676
Peter Hatina c9a65b
diff --git a/wireshark-autoconf.m4 b/wireshark-autoconf.m4
867676
index d8015d8..6d7b177 100644
Peter Hatina c9a65b
--- a/wireshark-autoconf.m4
Peter Hatina c9a65b
+++ b/wireshark-autoconf.m4
867676
@@ -33,6 +33,7 @@ AC_DEFUN([AM_PATH_WIRESHARK],[
867676
 #include <gmodule.h>
867676
 #include <epan/packet.h>
867676
 #include <epan/prefs.h>
867676
+#include <epan/epan.h>
867676
 
867676
 int 
867676
 main()
867676
@@ -40,7 +41,7 @@ main()
867676
 {
867676
 	int ws_major_version, ws_minor_version, ws_micro_version;
867676
 	int major, minor, micro;
867676
-	char **tmp_version;
867676
+	char *tmp_version;
867676
 
867676
 	tmp_version = (char *) strdup("$min_wireshark_version");
867676
 	major = 0;
867676
@@ -76,6 +77,7 @@ main()
867676
 #include <gmodule.h>
867676
 #include <epan/packet.h>
867676
 #include <epan/prefs.h>
867676
+#include <epan/epan.h>
867676
 ], [puts(epan_get_version());])], [WIRESHARK_VERSION=`./conftest$ac_exeext`],
867676
 wireshark_found=no)
867676