[PATCH 12/14] libmisc/shell/main_date.c: Define _XOPEN_SOURCE and _BSD_SOURCE to get access to both APIs

Joel Sherrill joel at rtems.org
Tue Mar 22 14:40:40 UTC 2016


---
 cpukit/libmisc/shell/main_date.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c
index 9b970a6..ac848f7 100644
--- a/cpukit/libmisc/shell/main_date.c
+++ b/cpukit/libmisc/shell/main_date.c
@@ -16,6 +16,8 @@
 #include "config.h"
 #endif
 
+#define _XOPEN_SOURCE
+#define _BSD_SOURCE
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
-- 
1.8.3.1




More information about the devel mailing list