Browse Source

cachegen: fix when building without getopt

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
pull/39/head
Hugo Beauzée-Luyssen 11 years ago
committed by Jean-Baptiste Kempf
parent
commit
ce1325ed51
  1. 4
      bin/cachegen.c

4
bin/cachegen.c

@ -51,6 +51,7 @@ int main (int argc, char *argv[])
#ifdef _WIN32
SetErrorMode(SEM_FAILCRITICALERRORS);
#endif
#ifdef HAVE_GETOPT_H
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;
}
#else
int optind = 1;
#endif
for (int i = optind; i < argc; i++)
{

Loading…
Cancel
Save