From 21e964a404f2f83c16352b44fc0f7475cb24ec06 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Tue, 13 Oct 2009 22:46:35 +0200 Subject: [PATCH] Launcher: Define _BSD_SOURCE to using DT_DIR on glibc --- src/launcher.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/launcher.c b/src/launcher.c index 9eced16..abb0b8d 100644 --- a/src/launcher.c +++ b/src/launcher.c @@ -30,13 +30,18 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "wmfs.h" -#include - /* conforming to glib use _GNU_SOURCE for asprintf declaration */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif +/* DT_DIR in dirent.h from glibc must have _BSD_SOURCE */ +#ifndef _BSD_SOURCE +#define _BSD_SOURCE +#endif + +#include "wmfs.h" +#include + static char *complete_on_command(char*, size_t); static char *complete_on_files(char*, size_t);