Actions
Bug #3738
openWt fails to compile WIOService with Cygwin
Description
When compiling Wt 3.3.3 with Cygwin 1.7.33-2(0.280/5/3) on Win7, it fails to compile WIOService.
Environment:
Cygwin's:
- gcc 4.9.2
- Boost 1.55 (provided by cygwin)
- cmake 2.8.9
- make 4.0
I used cmake -DBOOST_PREFIX=/usr -DSSL_PREFIX=/usr/lib -DWT_CPP_11_MODE=-std=gnu++0x /cygdrive/c/projects/wt-3.3.3/
I get the following error:
WIOService cannot be compiled, because fd_set is not defined.
I removed ADD_DEFINITIONS(-D__USE_W32_SOCKETS)
from CMakeLists.txt and replaced
#ifdef __CYGWIN__
#include <winsock2.h> // for gethostname()
#endif
with
#ifdef __USE_W32_SOCKETS
#include <winsock2.h> // for gethostname()
#endif
in src/http/Configuration.C
These changes fixed the compilation errors, however I am not sure, if these changes are correct.
Actions