projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
324b05e
)
fix check for posix realtime extensions
author
Matthias Braun
<matze@braunis.de>
Sat, 29 Mar 2008 23:00:33 +0000
(23:00 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sat, 29 Mar 2008 23:00:33 +0000
(23:00 +0000)
[r18279]
ir/common/timing.c
patch
|
blob
|
history
diff --git
a/ir/common/timing.c
b/ir/common/timing.c
index
f5730e1
..
6f6d9b6
100644
(file)
--- a/
ir/common/timing.c
+++ b/
ir/common/timing.c
@@
-227,7
+227,7
@@
static INLINE ir_timer_val_t *_time_sub(ir_timer_val_t *res, const ir_timer_val_
#endif /* _WIN32 */
#endif /* _WIN32 */
-#if
def _POSIX_PRIORITY_SCHEDULING
+#if
_XOPEN_REALTIME != -1
#include <sys/types.h>
#include <sched.h>
#include <sys/types.h>
#include <sched.h>
@@
-309,7
+309,7
@@
int ir_timer_leave_high_priority(void)
return 0;
}
return 0;
}
-#endif
/* _POSIX_PRIORITY_SCHEDULING */
+#endif
#ifdef __linux__
#ifdef __linux__