From 8d784b2fdc3860543e3164829a98087882d5b9cd Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 17 Oct 2011 15:22:11 +0300 Subject: =?UTF-8?q?=D0=BF=D0=BE=D1=80=D1=82=D0=B8=D1=80=D1=83=D1=8E=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/server/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/server/main.cpp b/server/server/main.cpp index 30d6404..baabcd3 100644 --- a/server/server/main.cpp +++ b/server/server/main.cpp @@ -1115,6 +1115,7 @@ int main(int argc, char* argv[]) int opt = 0; int daemon = 0; std::string cfg_path; +#ifndef WIN32 while ((opt = getopt(argc, argv, (char*)"bhc:")) != -1) //getting options from command line { switch (opt) @@ -1133,8 +1134,12 @@ int main(int argc, char* argv[]) default: break; } +#else + cfg_path = "./config"; +#endif } +#ifndef WIN32 if(daemon) //going to background (only for unix-like systems now) { pid_t pid; @@ -1150,6 +1155,7 @@ int main(int argc, char* argv[]) exit(EXIT_SUCCESS); } } +#endif if (!cfg_path.empty()) cfg = new config(cfg_path.c_str()); -- cgit v1.2.3