Use <wiretap/file_util.h> to include "file_util.h"; otherwise, the
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Nov 2005 02:47:09 +0000 (02:47 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 7 Nov 2005 02:47:09 +0000 (02:47 +0000)
include fails as we don't do -Iwiretap.

If we have it, include <sys/stat.h> in epan/filesystem.c - we need it
for stat() and the macros and structures it uses.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16410 f5534014-38df-0310-8fa8-9805f1628bb7

epan/addr_resolv.c
epan/filesystem.c
epan/plugins.c
epan/prefs.c
plugins/asn1/packet-asn1.c
plugins/mate/mate_util.c

index 9d43d04caa723ebc1a1225e70cdfbd0442c7a7fb..3d5c199b686838ef86f38b37a0be8b58ea979951 100644 (file)
 #include "ipv6-utils.h"
 #include "addr_resolv.h"
 #include "filesystem.h"
-#include "file_util.h"
+#include <wiretap/file_util.h>
 #include <epan/prefs.h>
 #include <epan/emem.h>
 
index b77c7d07933aef6eab08ce92806b101bbdbe62da..b3bf76cc474c04127e7575f3f5a3ce5bebf47906 100644 (file)
 #include <unistd.h>
 #endif
 
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
 #ifdef HAVE_WINDOWS_H
 #include <windows.h>
 #endif
@@ -46,7 +50,7 @@
 #endif
 
 #include "filesystem.h"
-#include "file_util.h"
+#include <wiretap/file_util.h>
 
 /*
  * Given a pathname, return a pointer to the last pathname separator
index 806488fd7d31447c64031700b1b414bda91c0bdb..1eef0d5496df39badd7568309078b78bbb8f2591 100644 (file)
@@ -49,7 +49,7 @@
 #endif
 
 #include "filesystem.h"
-#include "file_util.h"
+#include <wiretap/file_util.h>
 #include "report_err.h"
 
 /* linked list of all plugins */
index 70711e7609158c353c9029daf9f93da517a0c66a..69f76522eb67b14bb2db3ee4644b1be11478034c 100644 (file)
@@ -45,7 +45,7 @@
 #include <epan/proto.h>
 #include <epan/column.h>
 #include "print.h"
-#include "file_util.h"
+#include <wiretap/file_util.h>
 
 #include <epan/prefs-int.h>
 
index 43135fc5e49528f2a8d6faf3a6a5144a00bebdd0..f38f6bbc662ad6b91fec7487ddf5565c779b5a73 100644 (file)
@@ -83,7 +83,7 @@
 #include <epan/report_err.h>
 #include <epan/dissectors/packet-tcp.h>
 #include <epan/asn1.h>
-#include "file_util.h"
+#include <wiretap/file_util.h>
 
 #ifdef DISSECTOR_WITH_GUI
 #include <gtk/gtk.h>
index 89349317e4768e3f8614880816a763f3802b7fec..1856f34d4d1364fbd7ec0c629b87ef5489b3ae80 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "mate.h"
 #include "mate_util.h"
-#include "file_util.h"
+#include <wiretap/file_util.h>
 
 /***************************************************************************
 *  dbg_print