pkgsrc-WIP-discuss archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

wip/strigi: pthread_setschedparam() instead of sched_setscheduler()



Hello

Trying to compile wip/strigi on a NetBSD/amd64 v4.99.52 machine I had to apply
the attached additional patch to the package in order to get the strigi
daemon linked.

Is this the right way?

-- 
hernani
$NetBSD$

--- src/daemon/strigithread.cpp.orig    2007-10-26 14:25:44.000000000 +0200
+++ src/daemon/strigithread.cpp
@@ -26,6 +26,7 @@
 #include <signal.h>
 #include <sys/resource.h>
 #include <vector>
+#include <pthread.h>
 #include <stdlib.h>
 
 using namespace std;
@@ -99,7 +100,7 @@ threadstarter(void *d) {
                 + ".threadstarter",
                 string("error setting priority: ") + strerror(errno));
         }
-        r = sched_setscheduler(0, SCHED_BATCH, &param);
+        r = pthread_setschedparam(0, SCHED_BATCH, &param);
         if (r != 0) {
             STRIGI_LOG_INFO (string("strigi.daemon.") + thread->name
                 + ".threadstarter",

Attachment: pgpHXRIf7AFw5.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pkgsrc-wip-discuss mailing list
pkgsrc-wip-discuss%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-discuss


Home | Main Index | Thread Index | Old Index