gdraheim / zziplib

The ZZIPlib provides read access on ZIP-archives and unpacked data. It features an additional simplified API following the standard Posix API for file access
Other
62 stars 50 forks source link

missing defines #6

Closed geromueller closed 6 years ago

geromueller commented 7 years ago

Hi,

when fnmatch is not available, FNM_NOESCAPE|FNM_PATHNAME|FNM_PERIOD are not defined aswell.

gdraheim commented 6 years ago

the <zzip/__fnmatch.h> header has been extended to conver the necessary defines that are used in bins/*.c

mojca commented 6 years ago

I now get

../../zziplib/bins/unzzipdir-zip.c:103:9: error: implicit declaration of function 'fnmatch' [-Werror=implicit-function-declaration]
   if (! fnmatch (argv[argn], name,
         ^~~~~~~

The function name needs to be fixed here and in some three other files in the same folder.

gdraheim commented 6 years ago

oh forgot about that one.... renamed to _zzip_fnmatch

gdraheim commented 6 years ago

done as well