diff --git a/src/xpdev/dirwrap.c b/src/xpdev/dirwrap.c index 1384f3f5b8a56e1a12b355618f4341f98497ef9b..249b08ab79058bafe7032204db2b8e3c735d0225 100644 --- a/src/xpdev/dirwrap.c +++ b/src/xpdev/dirwrap.c @@ -636,6 +636,9 @@ static bool getfilecase(char *path, bool dir) } #endif +#if !defined GLOB_ONLYDIR + #define GLOB_ONLYDIR 0 +#endif if(glob(globme, dir ? GLOB_ONLYDIR : GLOB_MARK, NULL, &glb) != 0) return(false);