[PATCH:twm] Fix: menus.c:2374: warning: implicit declaration of function `putenv`

Julien Cristau jcristau at debian.org
Tue May 10 15:58:42 PDT 2011


On Tue, May 10, 2011 at 15:40:46 -0700, Alan Coopersmith wrote:

> Ensure _GNU_SOURCE is defined on Linux builds before including <stdlib.h>
> so the prototype is exposed in the header properly.
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=32696
> 
> Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
> ---
>  configure.ac    |    1 +
>  src/Makefile.am |    2 +-
>  src/menus.c     |    4 ++++
>  src/twm.h       |    4 ++++
>  4 files changed, 10 insertions(+), 1 deletions(-)
> 
Reviewed-by: Julien Cristau <jcristau at debian.org>

Cheers,
Julien


More information about the xorg-devel mailing list