1
0
mirror of git://sigrok.org/libserialport synced 2023-08-10 21:13:24 +03:00

Define _POSIX_C_SOURCE to 199309L to get clock_gettime().

This commit is contained in:
Martin Ling 2020-01-04 15:39:54 +00:00 committed by Uwe Hermann
parent 9118f753f4
commit 277f832a6a

View File

@ -26,6 +26,8 @@
/* For timeradd, timersub, timercmp, realpath. */
#define _BSD_SOURCE 1 /* for glibc < 2.19 */
#define _DEFAULT_SOURCE 1 /* for glibc >= 2.20 */
/* For clock_gettime and associated types. */
#define _POSIX_C_SOURCE 199309L
#endif
#include <string.h>