From 794b7a1c93515115359682ba2f7c6ecb1ca7586a Mon Sep 17 00:00:00 2001 From: Jan Safranek Date: Mon, 8 Mar 2010 12:45:57 +0100 Subject: Remove GNU_SOURCE from public headers Remove GNU_SOURCE from public headers, it has unpredictable consequences on applications using libcgroup.h Signed-off-by: Jan Safranek Signed-off-by: Dhaval Giani --- src/tools/cgconfig.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/tools/cgconfig.c b/src/tools/cgconfig.c index cc33ad9..e426b76 100644 --- a/src/tools/cgconfig.c +++ b/src/tools/cgconfig.c @@ -19,9 +19,16 @@ #include #include + +/* For basename() */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif +#include +#include + #include #include -#include #include #include -- cgit