aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-08-25 00:20:50 +0000
committerGerald Combs <gerald@wireshark.org>2010-08-25 00:20:50 +0000
commitb73454e8bd5e7b3df6fe9b0f2d671d56c96406e3 (patch)
treefb250e94243897339add56f533ada07d5dbb2450 /dumpcap.c
parentad4ffa5d499bd06b8ecc9293a18da458a4d43bc0 (diff)
Fix !Windows compilation.
svn path=/trunk/; revision=33917
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 312434950c..46daa0406f 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -661,7 +661,7 @@ set_pcap_linktype(pcap_t *pcap_h, capture_options *capture_opts,
char *set_linktype_err_str;
if (capture_opts->linktype == -1)
- return TRUE; /* just use the default */
+ return TRUE; /* just use the default */
#ifdef HAVE_PCAP_SET_DATALINK
if (pcap_set_datalink(pcap_h, capture_opts->linktype) == 0)
return TRUE; /* no error */
@@ -3296,10 +3296,12 @@ main(int argc, char *argv[])
struct utsname osinfo;
#endif
+#ifdef _WIN32
if (PSetDllDirectory = (SetDllDirectoryHandler) GetProcAddress(GetModuleHandle(_T("kernel32.dll")), "SetDllDirectoryW")) {
PSetDllDirectory(_T(""));
/* XXX - Exit on failure? */
}
+#endif
#ifdef HAVE_PCAP_REMOTE
#define OPTSTRING_A "A:"