rtkit: Fix build on solaris

Reported by Laurent Blume.
This commit is contained in:
David Henningsson 2013-05-28 10:47:55 +00:00
parent 09f8a4777e
commit 76da410fe2

View file

@ -292,28 +292,6 @@ finish:
return ret;
}
#else
int rtkit_make_realtime(DBusConnection *connection, pid_t thread, int priority) {
return -ENOTSUP;
}
int rtkit_make_high_priority(DBusConnection *connection, pid_t thread, int nice_level) {
return -ENOTSUP;
}
int rtkit_get_max_realtime_priority(DBusConnection *connection) {
return -ENOTSUP;
}
int rtkit_get_min_nice_level(DBusConnection *connection, int* min_nice_level) {
return -ENOTSUP;
}
long long rtkit_get_rttime_nsec_max(DBusConnection *connection) {
return -ENOTSUP;
}
#endif
#ifndef RLIMIT_RTTIME
@ -375,4 +353,31 @@ int fluid_rtkit_make_realtime(pid_t thread, int priority) {
}
#else
int rtkit_make_realtime(DBusConnection *connection, pid_t thread, int priority) {
return -ENOTSUP;
}
int rtkit_make_high_priority(DBusConnection *connection, pid_t thread, int nice_level) {
return -ENOTSUP;
}
int rtkit_get_max_realtime_priority(DBusConnection *connection) {
return -ENOTSUP;
}
int rtkit_get_min_nice_level(DBusConnection *connection, int* min_nice_level) {
return -ENOTSUP;
}
long long rtkit_get_rttime_nsec_max(DBusConnection *connection) {
return -ENOTSUP;
}
int fluid_rtkit_make_realtime(pid_t thread, int priority) {
return -ENOTSUP;
}
#endif