don't blindly assume that Darwin and Cygwin need GLOB_ABORTED defined; only define...
[asterisk/asterisk.git] / res / ael / ael.flex
index 4b29b5a..5408d3e 100644 (file)
@@ -66,11 +66,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
+#include <glob.h>
 
-#if defined(__Darwin__) || defined(__CYGWIN__)
+#if !defined(GLOB_ABORTED)
 #define GLOB_ABORTED GLOB_ABEND
 #endif
-# include <glob.h>
+
 #include "asterisk/logger.h"
 #include "asterisk/utils.h"
 #include "asterisk/lock.h"