diff options
author | Gerald Combs <gerald@wireshark.org> | 2010-08-25 00:20:50 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2010-08-25 00:20:50 +0000 |
commit | b73454e8bd5e7b3df6fe9b0f2d671d56c96406e3 (patch) | |
tree | fb250e94243897339add56f533ada07d5dbb2450 /dumpcap.c | |
parent | ad4ffa5d499bd06b8ecc9293a18da458a4d43bc0 (diff) |
Fix !Windows compilation.
svn path=/trunk/; revision=33917
Diffstat (limited to 'dumpcap.c')
-rw-r--r-- | dumpcap.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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:" |