mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
Support for MacOS
Split semaphore classes into Semaphore and NamedSemaphore Semaphore is implemented with Grand Central Dispatch NamedSemaphore uses the spin lock approach like in boost for sem_timedwait sem_getvalue is not supported on MacOS and therefore was removed Fixed bug (*gatewayaddress_len > 0) in MQTTSNSearchClient.c Signed-off-by: Jochen Wilhelmy <jochen.wilhelmy@gmail.com>
This commit is contained in:
@@ -145,7 +145,11 @@ bool TCPStack::accept(TCPStack& new_socket)
|
||||
|
||||
int TCPStack::send(const uint8_t* buf, int length)
|
||||
{
|
||||
#ifdef __APPLE__
|
||||
return ::send(_sockfd, buf, length, SO_NOSIGPIPE);
|
||||
#else
|
||||
return ::send(_sockfd, buf, length, MSG_NOSIGNAL);
|
||||
#endif
|
||||
}
|
||||
|
||||
int TCPStack::recv(uint8_t* buf, int len)
|
||||
|
||||
Reference in New Issue
Block a user