X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftincd.c;h=e1eb3b3d471933b91bbf335d471bab754ceacd74;hp=77794303e54cbe6803c9142bb46451a02c623661;hb=f5122ccecee095b9185b2324dea7bcd9655462ee;hpb=40d91ff619a6ea24a2a35c9d934bcc6bace27e24 diff --git a/src/tincd.c b/src/tincd.c index 77794303..e1eb3b3d 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -37,7 +37,9 @@ #include #include +#ifdef HAVE_LZO #include LZO1X_H +#endif #ifndef HAVE_MINGW #include @@ -116,6 +118,7 @@ static struct option const long_options[] = { #ifdef HAVE_MINGW static struct WSAData wsa_state; CRITICAL_SECTION mutex; +int main2(int argc, char **argv); #endif static void usage(bool status) { @@ -540,10 +543,12 @@ int main(int argc, char **argv) { if(!read_server_config()) return 1; +#ifdef HAVE_LZO if(lzo_init() != LZO_E_OK) { logger(LOG_ERR, "Error initializing LZO compressor!"); return 1; } +#endif #ifdef HAVE_MINGW if(WSAStartup(MAKEWORD(2, 2), &wsa_state)) {