Hi,
r43534 does not compile on linux.
gcc -DHAVE_CONFIG_H -I. -I. -I./wiretap -DINET6 -DG_DISABLE_DEPRECATED -DG_DISABLE_SINGLE_INCLUDES -DGSEAL_ENABLE -DGTK_DISABLE_DEPRECATED -DGTK_DISABLE_SINGLE_INCLUDES -D_FORTIFY_SOURCE=2 -D_U_="__attribute__((unused))" -I/usr/local/include -I/usr/include '-DPLUGIN_DIR="/usr/local/lib/wireshark/plugins/1.9.0"' -Werror -DPYTHON_DIR= -g -O2 -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wpointer-arith -Wno-pointer-sign -Warray-bounds -Wcast-align -Wformat-security -Wold-style-definition -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -MT wireshark-capture_ifinfo.o -MD -MP -MF .deps/wireshark-capture_ifinfo.Tpo -c -o wireshark-capture_ifinfo.o `test -f 'capture_ifinfo.c' || echo './'`capture_ifinfo.c
capture_ifinfo.c: In function ???get_interface_type???:
capture_ifinfo.c:344: error: ???ws_statb64??? undeclared (first use
in this function)
capture_ifinfo.c:344: error: (Each undeclared identifier is reported
only once
capture_ifinfo.c:344: error: for each function it appears in.)
capture_ifinfo.c:344: error: expected ???;??? before ???statb???
cc1: warnings being treated as errors
capture_ifinfo.c:345: error: ISO C90 forbids mixed declarations and code
capture_ifinfo.c:421: error: implicit declaration of function
???ws_stat64???
capture_ifinfo.c:421: error: ???statb??? undeclared (first use in
this function)
make[2]: *** [wireshark-capture_ifinfo.o] Error 1
make[2]: Leaving directory `/home/martin/src/wireshark.svn'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/martin/src/wireshark.svn'
make: *** [all] Error 2
I assume that file_util.h should be included, trivial patch attached.
Best regards,
Martin
Index: capture_ifinfo.c
===================================================================
--- capture_ifinfo.c (revision 43534)
+++ capture_ifinfo.c (working copy)
@@ -47,6 +47,8 @@
# include "wsutil/inet_v6defs.h"
#endif
+#include <wsutil/file_util.h>
+
#include <glib.h>
#include "capture_opts.h"