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);