fixed Win32 build
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 2 Apr 2008 09:50:40 +0000 (09:50 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 2 Apr 2008 09:50:40 +0000 (09:50 +0000)
[r19057]

ir/common/timing.c
ir/stat/stat_timing.c

index 6f6d9b6..09cf85a 100644 (file)
@@ -227,7 +227,7 @@ static INLINE ir_timer_val_t *_time_sub(ir_timer_val_t *res, const ir_timer_val_
 
 #endif /* _WIN32 */
 
-#if _XOPEN_REALTIME != -1
+#if defined(_XOPEN_REALTIME) && _XOPEN_REALTIME != -1
 
 #include <sys/types.h>
 #include <sched.h>
index facb013..3c28f50 100644 (file)
@@ -3,7 +3,7 @@
 #include "stat_timing.h"
 
 /* we can only use the scheduling stuff, if that macro is defined in unistd.h */
-#if _XOPEN_REALTIME != -1
+#if defined(_XOPEN_REALTIME) && _XOPEN_REALTIME != -1
 
 timing_sched_env_t *timing_sched_get(timing_sched_env_t *env)
 {