--- ivtools-1.2.3/src/IV-common/string.c 2004-03-30 06:30:53.000000000 +0900 +++ ivtools-1.2.5/src/IV-common/string.c 2007-10-30 03:20:59.000000000 +0900 @@ -41,6 +41,7 @@ extern wchar_t toupper(wchar_t); #endif #else +#if !defined(__APPLE__) #ifndef tolower extern int tolower(int); #endif @@ -48,6 +49,7 @@ extern int toupper(int); #endif #endif +#endif extern long int strtol(const char*, char**, int); extern double strtod(const char*, char**); } --- ivtools-1.2.3/src/Dispatch/dispatcher.c 2005-01-27 03:39:22.000000000 +0900 +++ ivtools-1.2.5/src/Dispatch/dispatcher.c 2007-10-30 03:26:45.000000000 +0900 @@ -72,7 +72,7 @@ void zero(); void setBit(int); void clrBit(int); - boolean isSet(int) const; + boolean isSet(int); boolean anySet() const; int numSet() const; }; @@ -84,7 +84,7 @@ void FdMask::zero() { Memory::zero(this, sizeof(FdMask)); } void FdMask::setBit(int fd) { FD_SET(fd,this); } void FdMask::clrBit(int fd) { FD_CLR(fd,this); } -boolean FdMask::isSet(int fd) const { return FD_ISSET(fd,this); } +boolean FdMask::isSet(int fd) { return FD_ISSET(fd,this); } boolean FdMask::anySet() const { const int mskcnt = howmany(FD_SETSIZE,NFDBITS); --- ivtools-1.2.3/src/OS/string.c 2004-03-30 06:30:53.000000000 +0900 +++ ivtools-1.2.5/src/OS/string.c 2007-10-30 03:20:59.000000000 +0900 @@ -41,6 +41,7 @@ extern wchar_t toupper(wchar_t); #endif #else +#if !defined(__APPLE__) #ifndef tolower extern int tolower(int); #endif @@ -48,6 +49,7 @@ extern int toupper(int); #endif #endif +#endif extern long int strtol(const char*, char**, int); extern double strtod(const char*, char**); }