@@ -128,10 +128,11 @@ * @param port The port on the host to connect to */ - (void)connectToHost: (OFString*)host port: (uint16_t)port; +#ifdef OF_THREADS /*! * @brief Asyncronously connect the OFTCPSocket to the specified destination. * * @param host The host to connect to * @param port The port on the host to connect to @@ -143,11 +144,11 @@ - (void)asyncConnectToHost: (OFString*)host port: (uint16_t)port target: (id)target selector: (SEL)selector; -#ifdef OF_HAVE_BLOCKS +# ifdef OF_HAVE_BLOCKS /*! * @brief Asyncronously connect the OFTCPSocket to the specified destination. * * @param host The host to connect to * @param port The port on the host to connect to @@ -154,10 +155,11 @@ * @param block The block to execute once the connection has been established */ - (void)asyncConnectToHost: (OFString*)host port: (uint16_t)port block: (of_tcpsocket_async_connect_block_t)block; +# endif #endif /*! * @brief Bind the socket on the specified port and host. *