mirror of https://github.com/eclipse/paho.mqtt.c
Modify order of includes to fix travis build
Signed-off-by: Juergen Kosel <juergen.kosel@softing.com>
This commit is contained in:
parent
fcfb5b43ef
commit
e858851455
|
|
@ -18,7 +18,6 @@
|
|||
#if !defined(SOCKET_H)
|
||||
#define SOCKET_H
|
||||
|
||||
#include "Thread.h" /* Needed for mutex_type */
|
||||
#include <sys/types.h>
|
||||
|
||||
#if defined(WIN32) || defined(WIN64)
|
||||
|
|
@ -66,6 +65,8 @@
|
|||
#define ULONG size_t
|
||||
#endif
|
||||
|
||||
#include "Thread.h" /* Needed for mutex_type */
|
||||
|
||||
/** socket operation completed successfully */
|
||||
#define TCPSOCKET_COMPLETE 0
|
||||
#if !defined(SOCKET_ERROR)
|
||||
|
|
|
|||
|
|
@ -1028,12 +1028,5 @@ exit:
|
|||
destroy_exit:
|
||||
MQTTAsync_destroy(&control_client);
|
||||
|
||||
#if !defined(_WINDOWS)
|
||||
heap_info* mqtt_mem = 0;
|
||||
mqtt_mem = Heap_get_info();
|
||||
MyLog(LOGA_INFO, "MQTT mem current %ld, max %ld",mqtt_mem->current_size,mqtt_mem->max_size);
|
||||
/*if (mqtt_mem->current_size > 0) */
|
||||
/*failures++*/; /* consider any not freed memory as failure */
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue