diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-28 20:30:06 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-28 20:30:06 +0000 |
commit | bf6ec00f3dc5ae23da1e8a4e20d44555eca0593a (patch) | |
tree | 88e7c781fd244d79de78e245c1eb18862341f285 /configure | |
parent | c545631538fe8058a1abd126f5c3b530ff003e54 (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-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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.. |