X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Ftiming.c;h=09cf85a05b081f0756b7175dcdbd4b889a9eeec3;hb=c71681c22466590a76c12aa0fdc805cb837af2a0;hp=f5730e1c41c297f86599ae0ed2aa04a7f391017d;hpb=3da73bb7a6d443f6f4f78231b1f1252044295e5f;p=libfirm diff --git a/ir/common/timing.c b/ir/common/timing.c index f5730e1c4..09cf85a05 100644 --- 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 */ -#ifdef _POSIX_PRIORITY_SCHEDULING +#if defined(_XOPEN_REALTIME) && _XOPEN_REALTIME != -1 #include #include @@ -309,7 +309,7 @@ int ir_timer_leave_high_priority(void) return 0; } -#endif /* _POSIX_PRIORITY_SCHEDULING */ +#endif #ifdef __linux__