Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
ce1325ed
Commit
ce1325ed
authored
Jan 30, 2016
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Feb 06, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cachegen: fix when building without getopt
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
d9c92333
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
bin/cachegen.c
bin/cachegen.c
+4
-0
No files found.
bin/cachegen.c
View file @
ce1325ed
...
@@ -51,6 +51,7 @@ int main (int argc, char *argv[])
...
@@ -51,6 +51,7 @@ int main (int argc, char *argv[])
#ifdef _WIN32
#ifdef _WIN32
SetErrorMode
(
SEM_FAILCRITICALERRORS
);
SetErrorMode
(
SEM_FAILCRITICALERRORS
);
#endif
#endif
#ifdef HAVE_GETOPT_H
static
const
struct
option
opts
[]
=
static
const
struct
option
opts
[]
=
{
{
{
"help"
,
no_argument
,
NULL
,
'h'
},
{
"help"
,
no_argument
,
NULL
,
'h'
},
...
@@ -73,6 +74,9 @@ int main (int argc, char *argv[])
...
@@ -73,6 +74,9 @@ int main (int argc, char *argv[])
usage
(
argv
[
0
]);
usage
(
argv
[
0
]);
return
1
;
return
1
;
}
}
#else
int
optind
=
1
;
#endif
for
(
int
i
=
optind
;
i
<
argc
;
i
++
)
for
(
int
i
=
optind
;
i
<
argc
;
i
++
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment