diff options
author | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-08-25 00:20:50 +0000 |
---|---|---|
committer | gerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-08-25 00:20:50 +0000 |
commit | 86c1354483ed146c35b4d24a949de4fb60fcb852 (patch) | |
tree | fb250e94243897339add56f533ada07d5dbb2450 /dumpcap.c | |
parent | 15d2dba308473ffc840fb70c21413a9df297f412 (diff) |
Fix !Windows compilation.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33917 f5534014-38df-0310-8fa8-9805f1628bb7
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:" |