robotconscience / ofxLibwebsockets

[Deprecated] openFrameworks wrapper of libwebsockets for WebSocket client and server functionality
Other
171 stars 68 forks source link

Fix for dispatch.h throwing an error in Xcode 9 / 10.13 SDK #99

Closed braitsch closed 6 years ago

braitsch commented 7 years ago

Compiling in Xcode 9 against the 10.13 SDK throws an error if HAVE_UNISTD_H in libs/libwebsockets/include/lws_config.h is undefined.

Defaulting it to 0 resolves this issue. https://forums.developer.apple.com/thread/86887

robotconscience commented 6 years ago

Sorry I missed this a couple weeks ago! Are you sure these need to be all set to 0? I just pushed a fix for just HAVE_UNISTD_H alone. Let me know if there's something I should be aware of!

braitsch commented 6 years ago

HAVE_UNISTD_H was the only one that was throwing an error for me but setting the rest to false rather than leaving them undefined will help protect against future issues.