From fc87d96e3b5e4ba6d80e58e94e271ad305b7a606 Mon Sep 17 00:00:00 2001 From: Dhiru Kholia Date: Wed, 15 Nov 2023 21:13:23 +0530 Subject: [PATCH] Fix compilation on Ubuntu Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this change: ``` $ make ... demo/decode_ft8.c:347:31: error: ‘CLOCK_REALTIME’ undeclared (first use in this function) 347 | clock_gettime(CLOCK_REALTIME, &spec); ``` --- demo/decode_ft8.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/demo/decode_ft8.c b/demo/decode_ft8.c index 1f45967..f410902 100644 --- a/demo/decode_ft8.c +++ b/demo/decode_ft8.c @@ -1,3 +1,5 @@ +#define _POSIX_C_SOURCE 199309L + #include #include #include