mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
pthread: Use a definition only if we have the old toolchain
This commit is contained in:
parent
2e6c8cdce3
commit
a567b6c1f6
@ -16,8 +16,12 @@
|
||||
|
||||
#include <sys/types.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
|
||||
#endif
|
||||
|
||||
#include_next <pthread.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user