summaryrefslogtreecommitdiff
path: root/src/anylike.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/anylike.c')
-rw-r--r--src/anylike.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/anylike.c b/src/anylike.c
index 855a072..70f03c5 100644
--- a/src/anylike.c
+++ b/src/anylike.c
@@ -49,7 +49,9 @@
#include <gnutls/gnutls.h>
#endif
+#ifndef _MSC_VER
#include "daemon.h"
+#endif
#ifndef USE_OPENSSL
@@ -241,6 +243,7 @@ int main(int argc, char* argv[])
log_printf(NOTICE, "just started...");
options_parse_post(&opt);
+#ifndef _MSC_VER
priv_info_t priv;
if(opt.username_)
if(priv_init(&priv, opt.username_, opt.groupname_)) {
@@ -248,6 +251,7 @@ int main(int argc, char* argv[])
log_close();
exit(-1);
}
+#endif
#ifndef USE_OPENSSL
ret = init_gnutls();
@@ -259,6 +263,7 @@ int main(int argc, char* argv[])
}
#endif
+#ifndef _MSC_VER
FILE* pid_file = NULL;
if(opt.pid_file_) {
pid_file = fopen(opt.pid_file_, "w");
@@ -293,6 +298,7 @@ int main(int argc, char* argv[])
fprintf(pid_file, "%d", pid);
fclose(pid_file);
}
+#endif
ret = main_loop(&opt);