From: Christian Grothoff Date: Wed, 21 Apr 2010 08:13:44 +0000 (+0000) Subject: bsd is broken X-Git-Tag: initial-import-from-subversion-38251~22072 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6f7541fa5956928c2b8ec10aa075e2aac12c3235;p=oweals%2Fgnunet.git bsd is broken --- diff --git a/src/util/os_priority.c b/src/util/os_priority.c index b0f2b3129..3b04555d1 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -118,7 +118,7 @@ GNUNET_OS_set_process_priority (pid_t proc, /* Set process priority */ #ifdef MINGW SetPriorityClass (GetCurrentProcess (), rprio); -#else +#elif LINUX if ( (0 == proc) || (proc == getpid () ) ) { @@ -144,6 +144,9 @@ GNUNET_OS_set_process_priority (pid_t proc, return GNUNET_SYSERR; } } +#else + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG | GNUNET_ERROR_TYPE_BULK, + "Priority management not availabe for this platform\n"); #endif return GNUNET_OK; }