mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
pthread: Use a definition only if we have the old toolchain
This commit is contained in:
@@ -16,8 +16,12 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
#include <sys/features.h>
|
||||||
|
|
||||||
|
// Remove this when GCC 5.2.0 is no longer supported
|
||||||
|
#ifndef _POSIX_TIMEOUTS
|
||||||
#define _POSIX_TIMEOUTS // For pthread_mutex_timedlock
|
#define _POSIX_TIMEOUTS // For pthread_mutex_timedlock
|
||||||
|
#endif
|
||||||
|
|
||||||
#include_next <pthread.h>
|
#include_next <pthread.h>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user