summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-28 20:30:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-28 20:30:06 +0000
commitbf6ec00f3dc5ae23da1e8a4e20d44555eca0593a (patch)
tree88e7c781fd244d79de78e245c1eb18862341f285 /configure
parentc545631538fe8058a1abd126f5c3b530ff003e54 (diff)
Fixed fd_Setsize in cygwin
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1541 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure b/configure
index 9d6d2d29f..2305adb11 100755
--- a/configure
+++ b/configure
@@ -515,6 +515,9 @@ sub writefiles {
my $CL = $config{CHAN_LENGT}+1;
print FILEHANDLE <<EOF;
/* Auto generated by configure, do not modify! */
+#ifndef __CONFIGURATION_AUTO__
+#define __CONFIGURATION_AUTO__
+
#define CONFIG_FILE "$config{CONFIG_DIR}/inspircd.conf"
#define MOD_PATH "$config{MODULE_DIR}"
#define VERSION "$version"
@@ -533,6 +536,7 @@ EOF
}
if ($config{OSNAME} =~ /CYGWIN/) {
print FILEHANDLE "#define IS_CYGWIN\n";
+ print FILEHANDLE "#ifndef FD_SETSIZE\n#define FD_SETSIZE 1024\n#endif\n";
}
if ($config{STATIC_LINK} eq "yes") {
print FILEHANDLE "#define STATIC_LINK\n";
@@ -567,6 +571,7 @@ EOF
if (!$use_hiperf) {
print FILEHANDLE "#define USE_SELECT\n";
}
+ print FILEHANDLE "\n#endif\n";
close(FILEHANDLE);
# Create a Modules List..