diff options
author | Christian Pointner <equinox@anylike.org> | 2010-01-03 16:19:01 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anylike.org> | 2010-01-03 16:19:01 +0000 |
commit | c89fa4d230dbdf2d3f12301a916a7b2373d2de14 (patch) | |
tree | 503d9d7116bc972dafee170c5c4ed1adf11e69b9 /src/anylike.c | |
parent | finally found the gnutls_strerror function ;) (diff) |
added Visual Studio Project
not working yet .. :(
Diffstat (limited to 'src/anylike.c')
-rw-r--r-- | src/anylike.c | 6 |
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); |