On Sat, Oct 22, 2011 at 04:35:06AM +0000, Dietmar Maurer wrote:
I get the following error when compiling the latest source:
/bin/bash ../libtool --silent --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../include -I../include/qb -I../include -I../include -fPIC -Wall -Wshadow
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wdeclaration-after-statement -Wpointer-arith -Wwrite-strings -Wcast-align
-Wbad-function-cast -Wmissing-format-attribute -Wformat=2 -Wformat-security
-Wno-format-nonliteral -Wno-long-long -Wno-strict-aliasing -c -o libqb_la-log_thread.lo
`test -f 'log_thread.c' || echo './'`log_thread.c
log_thread.c: In function \u2018qb_log_thread_priority_set\u2019:
log_thread.c:126: error: \u2018SCHED_IDLE\u2019 undeclared (first use in this function)
log_thread.c:126: error: (Each undeclared identifier is reported only once
log_thread.c:126: error: for each function it appears in.)
(using debian squeeze)
If you apply the following patch does it compile?
diff --git a/lib/log_thread.c b/lib/log_thread.c
index fdef85c..0e7b74c 100644
--- a/lib/log_thread.c
+++ b/lib/log_thread.c
@@ -123,7 +123,9 @@ qb_log_thread_priority_set(int32_t policy, int32_t priority)
logt_sched_policy = policy;
if (policy == SCHED_OTHER ||
+#ifdef SCHED_IDLE
policy == SCHED_IDLE ||
+#endif /* SCHED_IDLE */
policy == SCHED_BATCH) {
logt_sched_param.sched_priority = 0;
} else {
-Angus
- Dietmar
_______________________________________________
quarterback-devel mailing list
quarterback-devel(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/quarterback-devel