#ifndef __ESP_SYS_SELECT_H__
#define __ESP_SYS_SELECT_H__
+/* Newlib 2.2.0 does not provide sys/select.h, and fd_set is defined in sys/types.h */
#include <sys/types.h>
+#ifndef fd_set
+#include_next <sys/select.h>
+#else // fd_set
#include <sys/time.h>
#ifdef __cplusplus
} // extern "C"
#endif
+#endif // fd_set
+
#endif //__ESP_SYS_SELECT_H__
vTaskSuspend(NULL);
}
- ESP_LOGV(TAG, "%s EXIT", __FUNCTION__);
+ // Should never be reached
+ abort();
}
int pthread_cancel(pthread_t thread)
* Host to big endian, host to little endian, big endian to host, and little
* endian to host byte order functions as detailed in byteorder(9).
*/
-#if 1 //BYTE_ORDER == _LITTLE_ENDIAN
-#define __bswap16 __bswap_16
-#define __bswap32 __bswap_32
-#define __bswap64 __bswap_64
+#if BYTE_ORDER == _LITTLE_ENDIAN
#define htobe16(x) bswap16((x))
#define htobe32(x) bswap32((x))
#define htobe64(x) bswap64((x))