summaryrefslogtreecommitdiff
path: root/storage/pbxt/src
diff options
context:
space:
mode:
Diffstat (limited to 'storage/pbxt/src')
-rwxr-xr-xstorage/pbxt/src/pthread_xt.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/storage/pbxt/src/pthread_xt.cc b/storage/pbxt/src/pthread_xt.cc
index e7f0632e9ae..c5dc2e41fdd 100755
--- a/storage/pbxt/src/pthread_xt.cc
+++ b/storage/pbxt/src/pthread_xt.cc
@@ -558,8 +558,10 @@ xtPublic int xt_p_set_low_priority(pthread_t thr)
*/
/* -20 = highest, 20 = lowest */
+#ifdef SET_GLOBAL_PRIORITY
if (setpriority(PRIO_PROCESS, getpid(), 20) == -1)
return errno;
+#endif
return 0;
}
return pth_set_priority(thr, pth_min_priority);