@@ -14,11 +14,13 @@ * file. */ #import "OFObject.h" -#import "socket.h" +#ifdef OF_HAVE_SOCKETS +# import "socket.h" +#endif OF_ASSUME_NONNULL_BEGIN @class OFMutableArray OF_GENERIC(ObjectType); @class OFDate; @@ -88,10 +90,11 @@ * OFKernelEventObserver. */ @property (readonly, nonatomic) int fileDescriptorForWriting; @end +#ifdef OF_HAVE_SOCKETS /*! * @class OFKernelEventObserver * OFKernelEventObserver.h ObjFW/OFKernelEventObserver.h * * @brief A class that can observe multiple kernel events (e.g. streams being @@ -203,7 +206,8 @@ * thread, but in some circumstances, it might be desirable for a thread to * manually stop the observe running in another thread. */ - (void)cancel; @end +#endif OF_ASSUME_NONNULL_END