Add some FreeBSD stuff from Stijn Hoop (fritti)

This commit is contained in:
theoddone33
2001-05-03 18:17:23 +00:00
parent c433ffb84f
commit c75fddfba3
3 changed files with 12 additions and 0 deletions

View File

@@ -365,6 +365,11 @@ DWORD ZFileFindFirst()
*(char *)(DTALocPos + 0x15) = 0;
#ifdef __FreeBSD__
if (globbuf.gl_matchc == 0)
return -1;
#endif
stat ( globbuf.gl_pathv[globcur], &filetype );
if(ZFileFindATTRIB&0x10 && !S_ISDIR ( filetype.st_mode )) return(ZFileFindNext());