Commit ce1325ed authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen Committed by Jean-Baptiste Kempf

cachegen: fix when building without getopt

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent d9c92333
......@@ -51,6 +51,7 @@ int main (int argc, char *argv[])
#ifdef _WIN32
static const struct option opts[] =
{ "help", no_argument, NULL, 'h' },
......@@ -73,6 +74,9 @@ int main (int argc, char *argv[])
usage (argv[0]);
return 1;
int optind = 1;
for (int i = optind; i < argc; i++)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment