From fd2852b50f0a341af0c356ff79164153293244d1 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Tue, 13 Oct 2009 22:39:34 +0200 Subject: [PATCH] Launcher: To use asprintf() with glibc we define _GNU_SOURCE --- src/launcher.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/launcher.c b/src/launcher.c index 5f1ed19..9eced16 100644 --- a/src/launcher.c +++ b/src/launcher.c @@ -33,6 +33,11 @@ #include "wmfs.h" #include +/* conforming to glib use _GNU_SOURCE for asprintf declaration */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + static char *complete_on_command(char*, size_t); static char *complete_on_files(char*, size_t);