diff options
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.. |