]> granicus.if.org Git - flex/commitdiff
include libgen.h from flexdef.h, not main.c
authorWill Estes <westes575@gmail.com>
Sun, 27 Dec 2015 18:46:37 +0000 (13:46 -0500)
committerWill Estes <westes575@gmail.com>
Sun, 27 Dec 2015 18:46:37 +0000 (13:46 -0500)
src/flexdef.h
src/main.c

index 544958132dbad29a4bff099ddb050cf40d113e87..dec569584fdbea4cac915b8fbca555b617a4d096 100644 (file)
@@ -45,6 +45,7 @@
 #include <stdarg.h>
 #include <setjmp.h>
 #include <ctype.h>
+#include <libgen.h> /* for XPG version of basename(3) */
 #include <string.h>
 #include <math.h>
 #endif
index ba09f5c47e74f78bf936919d5f2dd963af2f34c3..fd06be427b845023aaf716c56641a595dcb978c4 100644 (file)
@@ -32,8 +32,6 @@
 /*  PURPOSE. */
 \f
 
-#include <libgen.h>
-
 #include "flexdef.h"
 #include "version.h"
 #include "options.h"