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:
parent
9118f753f4
commit
277f832a6a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user