From 0f1ccd0b3409ab9b9fce1256fc59ad9bbe69a349 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 10 May 2011 15:35:51 -0700 Subject: Fix: menus.c:2374: warning: implicit declaration of function `putenv` Ensure _GNU_SOURCE is defined on Linux builds before including so the prototype is exposed in the header properly. https://bugs.freedesktop.org/show_bug.cgi?id=32696 Signed-off-by: Alan Coopersmith Reviewed-by: Julien Cristau --- src/menus.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/menus.c') diff --git a/src/menus.c b/src/menus.c index 8d21644..bc688e6 100644 --- a/src/menus.c +++ b/src/menus.c @@ -58,6 +58,10 @@ in this Software without prior written authorization from The Open Group. * ***********************************************************************/ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include #include #include "twm.h" -- cgit v1.2.3