summaryrefslogtreecommitdiff
path: root/lib/server/Daemon.cpp
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2008-04-05 00:47:39 +0000
committerChris Wilson <chris+github@qwirx.com>2008-04-05 00:47:39 +0000
commit854ede0bd8f6a32fdd88c6e3d9bcf6076b052344 (patch)
tree4794018d2d992e163472904724907151c56d115e /lib/server/Daemon.cpp
parenta07a1e20c53ebd883579c4a301b29a6b5a15f66d (diff)
Command-line option fix from [1975]
Diffstat (limited to 'lib/server/Daemon.cpp')
-rw-r--r--lib/server/Daemon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server/Daemon.cpp b/lib/server/Daemon.cpp
index 292a628c..c2233fb9 100644
--- a/lib/server/Daemon.cpp
+++ b/lib/server/Daemon.cpp
@@ -308,7 +308,7 @@ int Daemon::Main(const char *DefaultConfigFile, int argc, const char *argv[])
// reset getopt, just in case anybody used it before.
// unfortunately glibc and BSD differ on this point!
// http://www.ussg.iu.edu/hypermail/linux/kernel/0305.3/0262.html
- #if HAVE_DECL_OPTRESET == 1
+ #if HAVE_DECL_OPTRESET == 1 || defined WIN32
optind = 1;
optreset = 1;
#elif defined __GLIBC__