diff options
-rwxr-xr-x | configure | 3 | ||||
-rw-r--r-- | src/inspircd.cpp | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -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) |