Launcher: To use asprintf() with glibc we define _GNU_SOURCE

This commit is contained in:
Philippe Pepiot 2009-10-13 22:39:34 +02:00
parent 6abac69d8f
commit fd2852b50f

View File

@ -33,6 +33,11 @@
#include "wmfs.h"
#include <dirent.h>
/* 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);