mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-02 07:21:58 +00:00
rtkit: Fix build on solaris
Reported by Laurent Blume.
This commit is contained in:
parent
09f8a4777e
commit
76da410fe2
1 changed files with 27 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue