summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure3
-rw-r--r--src/inspircd.cpp5
2 files changed, 8 insertions, 0 deletions
diff --git a/configure b/configure
index 33f36c178..2fe49a74c 100755
--- a/configure
+++ b/configure
@@ -491,6 +491,9 @@ EOF
if ($config{OSNAME} =~ /SunOS/) {
print FILEHANDLE "#define IS_SOLARIS\n";
}
+ if ($config{OSNAME} =~ /CYGWIN/) {
+ print FILEHANDLE "#define IS_CYGWIN\n";
+ }
if ($config{STATIC_LINK} eq "yes") {
print FILEHANDLE "#define STATIC_LINK\n";
}
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4e6e0f86c..5862400ce 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -2523,7 +2523,12 @@ int InspIRCd(char** argv, int argc)
printf("ERROR: Could not write to logfile %s, bailing!\n\n",logpath.c_str());
Exit(ERROR);
}
+
+#ifdef IS_CYGWIN
+ printf("Logging to ircd.log...\n");
+#else
printf("Logging to %s...\n",logpath.c_str());
+#endif
log(DEFAULT,"$Id$");
if (geteuid() == 0)