pthread: Use a definition only if we have the old toolchain

This commit is contained in:
Anton Maklakov 2019-04-10 21:05:10 +07:00
parent 2e6c8cdce3
commit a567b6c1f6

View file

@ -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>