]> rtime.felk.cvut.cz Git - ert_linux.git/commitdiff
Fix compiler warnings
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Jul 2013 17:39:51 +0000 (19:39 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Jul 2013 17:39:51 +0000 (19:39 +0200)
ert_linux/ert_linux_multitasking_main.tlc

index c0bb2ad84e2ab9b7559115655ded0a2f2fd834b6..a934620862fefd3aca78f62de04c2073c3c8b317 100644 (file)
@@ -27,7 +27,8 @@
 %function generateDeclarations() Output\r
 \r
   /* Multirate - Multitasking case main file */\r
-  #define _POSIX_C_SOURCE 199309L        /* For clock_gettime() */\r
+  #define _BSD_SOURCE                   /* For usleep() */\r
+  #define _POSIX_C_SOURCE 200112L        /* For clock_gettime() & clock_nanosleep() */\r
   #include <stdio.h>                     /* This ert_main.c example uses printf/fflush */\r
   #include <pthread.h>                   /* Thread library header file */\r
   #include <sched.h>                     /* OS scheduler header file */\r