mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +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:
@@ -116,7 +116,7 @@ int MQTTSNDeserialize_gwinfo(unsigned char* gatewayid, unsigned short* gatewayad
|
||||
*gatewayid = readChar(&curdata);
|
||||
|
||||
*gatewayaddress_len = enddata - curdata;
|
||||
*gatewayaddress = (gatewayaddress_len > 0) ? curdata : NULL;
|
||||
*gatewayaddress = (*gatewayaddress_len > 0) ? curdata : NULL;
|
||||
|
||||
rc = 1;
|
||||
exit:
|
||||
|
||||
Reference in New Issue
Block a user