summaryrefslogtreecommitdiff
path: root/src/port/sys_internal.h
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-02-28 12:14:00 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-02-28 12:14:00 +0100
commit928fc83a6492e6ceaf7a46b888526e20bcd3a6dc (patch)
treeeebcf82d1ecdd0ac592bb2e33c0241e48a4f93d3 /src/port/sys_internal.h
parentb4cf78d1eaed900aa6acbcab01bc8693c88b0275 (diff)
downloadwolfbones-928fc83a6492e6ceaf7a46b888526e20bcd3a6dc.tar.gz
wolfbones-928fc83a6492e6ceaf7a46b888526e20bcd3a6dc.tar.bz2
added localtime_r with stub to tests
Diffstat (limited to 'src/port/sys_internal.h')
-rw-r--r--src/port/sys_internal.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h
index ac45463..7583a4b 100644
--- a/src/port/sys_internal.h
+++ b/src/port/sys_internal.h
@@ -24,6 +24,21 @@
* @author Andreas Baumann <abaumann@yahoo.com>
*/
+#include "port/sys.h"
+
+#if defined LINUX
+#if OS_MAJOR_VERSION == 2
+#if OS_MINOR_VERSION == 6
+#define HAVE_LOCALTIME_R
+#define HAVE_PTHREADS
+#else
+ #error unknown platform
+#endif /* defined OS_MINOR_VERSION == 6 */
+#else
+ #error unknown platform
+#endif /* defined OS_MAJOR_VERSION == 2 */
+#endif /* defined LINUX */
+
#if defined __INTEL_COMPILER
#if( __INTEL_COMPILER >= 1100 )