bsd is broken
authorChristian Grothoff <christian@grothoff.org>
Wed, 21 Apr 2010 08:13:44 +0000 (08:13 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 21 Apr 2010 08:13:44 +0000 (08:13 +0000)
src/util/os_priority.c

index b0f2b31294ea187d90a5b059f313f0fd4f36c9e1..3b04555d1ccbcaa391b989e33ec131c988bdcc4e 100644 (file)
@@ -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;
 }