From 55e03b6f670b4d7c321e4b5880a50f9a12dc22dc Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 23 Jul 2013 19:39:51 +0200 Subject: [PATCH] Fix compiler warnings --- ert_linux/ert_linux_multitasking_main.tlc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ert_linux/ert_linux_multitasking_main.tlc b/ert_linux/ert_linux_multitasking_main.tlc index c0bb2ad..a934620 100644 --- a/ert_linux/ert_linux_multitasking_main.tlc +++ b/ert_linux/ert_linux_multitasking_main.tlc @@ -27,7 +27,8 @@ %function generateDeclarations() Output /* Multirate - Multitasking case main file */ - #define _POSIX_C_SOURCE 199309L /* For clock_gettime() */ + #define _BSD_SOURCE /* For usleep() */ + #define _POSIX_C_SOURCE 200112L /* For clock_gettime() & clock_nanosleep() */ #include /* This ert_main.c example uses printf/fflush */ #include /* Thread library header file */ #include /* OS scheduler header file */ -- 2.39.2