SwiftSocket icon indicating copy to clipboard operation
SwiftSocket copied to clipboard

Bug in ytcpsocket.c

Open m-jamshidzadeh opened this issue 8 years ago • 2 comments

it's work in old versions but when use in Xcode version 9 There is some bug in ytcpsocket.c. plz someone say solution ???

m-jamshidzadeh avatar Jul 27 '17 11:07 m-jamshidzadeh

just add #include <sys/time.h> in ytcpsocket.c

m-jamshidzadeh avatar Jul 27 '17 14:07 m-jamshidzadeh

Same issue here. Since Xcode 9 getting this error:

ytcpsocket.c:81:18: Implicit declaration of function 'select' is invalid in C99

My solution was adding #include <sys/sysctl.h> to ytcpsocket.c, but #include <sys/time.h> works as well

Anrijs avatar Oct 03 '17 11:10 Anrijs