SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
29
devel/commoncpp/patches/patch-src_process_cpp
Normal file
29
devel/commoncpp/patches/patch-src_process_cpp
Normal file
|
@ -0,0 +1,29 @@
|
|||
--- src/process.cpp.orig Fri Jan 16 07:27:00 2009
|
||||
+++ src/process.cpp Sat Mar 24 10:15:59 2012
|
||||
@@ -526,7 +526,7 @@ void Process::attach(const char *dev)
|
||||
|
||||
void Process::setScheduler(const char *pol)
|
||||
{
|
||||
-#ifdef _POSIX_PRIORITY_SCHEDULING
|
||||
+#if defined(_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING > 0)
|
||||
struct sched_param p;
|
||||
int policy;
|
||||
|
||||
@@ -582,7 +582,7 @@ void Process::setScheduler(const char *pol)
|
||||
|
||||
void Process::setPriority(int pri)
|
||||
{
|
||||
-#ifdef _POSIX_PRIORITY_SCHEDULING
|
||||
+#if defined(_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING > 0)
|
||||
struct sched_param p;
|
||||
int policy = sched_getscheduler(0);
|
||||
int min = sched_get_priority_min(policy);
|
||||
@@ -607,7 +607,7 @@ void Process::setPriority(int pri)
|
||||
|
||||
bool Process::isScheduler(void)
|
||||
{
|
||||
-#ifdef _POSIX_PRIORITY_SCHEDULING
|
||||
+#if defined(_POSIX_PRIORITY_SCHEDULING) && (_POSIX_PRIORITY_SCHEDULING > 0)
|
||||
return true;
|
||||
#else
|
||||
return false;
|
Loading…
Add table
Add a link
Reference in a new issue