dreese / FastSocket

High-throughput, synchronous Objective-C wrapper around BSD sockets for iOS and macOS.
MIT License
170 stars 39 forks source link

Unable to build FastSocket on Xcode 9.0 (9A235) #24

Closed lrebscher closed 7 years ago

lrebscher commented 7 years ago

Error in FastSocket.m:426 Declaration of 'select' must be imported from module 'Darwin.POSIX.sys.time' before it is required Implicit declaration of function 'select' is invalid in C99

Solution The following import solved the problem for me: #include <sys/time.h>

Stumbled upon a solved ticket (https://github.com/blinksh/blink/issues/336) reporting the same problem in a different project.

lrebscher commented 7 years ago

@dreese two pull request fixing this bug already exist, could you maybe merge one of them and deploy a new release?

dreese commented 7 years ago

Weird. I didn't not receive an email for your comment two days ago. I apologize for that. Will take a look.

dreese commented 7 years ago

There are two PRs to solve this. Looking.

dreese commented 7 years ago

Fixed by #22

lrebscher commented 7 years ago

Thank you!