diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-06-16 05:07:56 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-06-16 05:07:56 +0000 |
commit | 583bd00e1ec300316c38f83e82563083f83d7618 (patch) | |
tree | f4a013160c71155c3a663d44e18876d8e908db92 /src/common/cbasetypes.h | |
parent | c4c16e065a4be69d0f3c10b0c91cc17014361c9a (diff) | |
download | hercules-583bd00e1ec300316c38f83e82563083f83d7618.tar.gz hercules-583bd00e1ec300316c38f83e82563083f83d7618.tar.bz2 hercules-583bd00e1ec300316c38f83e82563083f83d7618.tar.xz hercules-583bd00e1ec300316c38f83e82563083f83d7618.zip |
* Made the socket limit not be set in cygwin, which has bogus behavior. (bugreport:1684)
* Made the socket limit be set to the maximum allowed value when setting to FD_SETSIZE fails.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12839 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/common/cbasetypes.h')
-rw-r--r-- | src/common/cbasetypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index 2a2d958ff..f94e9c6e7 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -33,6 +33,10 @@ #define MINGW #endif +#if (defined(__CYGWIN__) || defined(__CYGWIN32__)) && !defined(CYGWIN) +#define CYGWIN +#endif + // __APPLE__ is the only predefined macro on MacOS X #if defined(__APPLE__) #define __DARWIN__ |