aboutsummaryrefslogtreecommitdiff
path: root/src/options.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2017-12-19 21:12:55 +0100
committerToni Uhlig <matzeton@googlemail.com>2017-12-19 21:12:55 +0100
commit00e2c4e6849adc1b9cc8b9daf9069d67ff086dc3 (patch)
tree1f9df654212d9d37e178470d99d0338fc0b4a0ad /src/options.c
parent4176fdf0b64f068d123a0d960beb1eb5708f3e7b (diff)
ptunnel-ng:
* fixed missing conditionaled compile for pcap * ported to mingw64
Diffstat (limited to 'src/options.c')
-rw-r--r--src/options.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c
index 01a98db..b8487e0 100644
--- a/src/options.c
+++ b/src/options.c
@@ -504,8 +504,10 @@ int parse_options(int argc, char **argv) {
}
opts.given_dst_ip = *(uint32_t*)host_ent->h_addr_list[0];
+#ifndef WIN32
if (NULL == (opts.pid_file = fopen(opts.pid_path, "w")))
pt_log(kLog_error, "Failed to open pidfile: \"%s\", Cause: %s\n", opts.pid_path, strerror(errno));
+#endif
if (has_logfile && opts.log_path) {
pt_log(kLog_info, "Open Logfile: \"%s\"\n", opts.log_path);