From 32744efb214aa3ffbf15a9918b3bd3b3d41e7264 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 16 Jun 2009 17:10:52 +0200 Subject: autoconfization --- rtkit-daemon.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'rtkit-daemon.c') diff --git a/rtkit-daemon.c b/rtkit-daemon.c index 987cd40..2419ae9 100644 --- a/rtkit-daemon.c +++ b/rtkit-daemon.c @@ -19,9 +19,9 @@ along with RealtimeKit. If not, see . ***/ -#pragma GCC diagnostic ignored "-Wunused-parameter" - -#define _GNU_SOURCE +#ifdef HAVE_CONFIG_H +#include +#endif #include #include @@ -56,7 +56,7 @@ #endif #ifndef SCHED_RESET_ON_FORK -#warning "Your libc lacks the definition of SCHED_RESET_ON_FORK. We'll now define it ourselves, however make sure your kernel is new enough!" +/* "Your libc lacks the definition of SCHED_RESET_ON_FORK. We'll now define it ourselves, however make sure your kernel is new enough! */ #define SCHED_RESET_ON_FORK 0x40000000 #endif @@ -930,7 +930,6 @@ static int reset_all(void) { for (;;) { const struct dirent *tde; unsigned long long tid; - int r; if (!(tde = readdir(td))) break; -- cgit