Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
551077ab
Commit
551077ab
authored
Nov 08, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for getopt_long_only instead of getopt_long.
Some platforms have the latter but not the former.
parent
3050f11f
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
42 deletions
+10
-42
configure
configure
+1
-1
configure.ac
configure.ac
+1
-1
config.h.in
include/config.h.in
+2
-2
getopt.c
libs/port/getopt.c
+3
-25
getopt1.c
libs/port/getopt1.c
+3
-13
No files found.
configure
View file @
551077ab
...
@@ -13017,7 +13017,7 @@ for ac_func in \
...
@@ -13017,7 +13017,7 @@ for ac_func in \
futimesat
\
futimesat
\
getattrlist
\
getattrlist
\
getdirentries
\
getdirentries
\
getopt_long
\
getopt_long
_only
\
getpagesize
\
getpagesize
\
getpwuid
\
getpwuid
\
gettimeofday
\
gettimeofday
\
...
...
configure.ac
View file @
551077ab
...
@@ -2019,7 +2019,7 @@ AC_CHECK_FUNCS(\
...
@@ -2019,7 +2019,7 @@ AC_CHECK_FUNCS(\
futimesat \
futimesat \
getattrlist \
getattrlist \
getdirentries \
getdirentries \
getopt_long \
getopt_long
_only
\
getpagesize \
getpagesize \
getpwuid \
getpwuid \
gettimeofday \
gettimeofday \
...
...
include/config.h.in
View file @
551077ab
...
@@ -206,8 +206,8 @@
...
@@ -206,8 +206,8 @@
/* Define to 1 if you have the <getopt.h> header file. */
/* Define to 1 if you have the <getopt.h> header file. */
#undef HAVE_GETOPT_H
#undef HAVE_GETOPT_H
/* Define to 1 if you have the `getopt_long' function. */
/* Define to 1 if you have the `getopt_long
_only
' function. */
#undef HAVE_GETOPT_LONG
#undef HAVE_GETOPT_LONG
_ONLY
/* Define to 1 if you have the `getpagesize' function. */
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
#undef HAVE_GETPAGESIZE
...
...
libs/port/getopt.c
View file @
551077ab
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
# include <config.h>
# include <config.h>
#endif
#endif
#ifdef HAVE_GETOPT_LONG
#ifdef HAVE_GETOPT_LONG
_ONLY
#define ELIDE_CODE
#define ELIDE_CODE
#endif
#endif
...
@@ -218,26 +218,7 @@ static char *posixly_correct;
...
@@ -218,26 +218,7 @@ static char *posixly_correct;
# include <strings.h>
# include <strings.h>
# endif
# endif
/* Avoid depending on library functions or files
# define my_index strchr
whose names are inconsistent. */
#ifndef getenv
extern
char
*
getenv
();
#endif
static
char
*
my_index
(
str
,
chr
)
const
char
*
str
;
int
chr
;
{
while
(
*
str
)
{
if
(
*
str
==
chr
)
return
(
char
*
)
str
;
str
++
;
}
return
0
;
}
/* If using GCC, we can safely declare strlen this way.
/* If using GCC, we can safely declare strlen this way.
If not using GCC, it is ok not to declare it. */
If not using GCC, it is ok not to declare it. */
...
@@ -1196,10 +1177,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
...
@@ -1196,10 +1177,7 @@ _getopt_internal (argc, argv, optstring, longopts, longind, long_only)
}
}
int
int
getopt
(
argc
,
argv
,
optstring
)
getopt
(
int
argc
,
char
*
const
*
argv
,
const
char
*
optstring
)
int
argc
;
char
*
const
*
argv
;
const
char
*
optstring
;
{
{
return
_getopt_internal
(
argc
,
argv
,
optstring
,
return
_getopt_internal
(
argc
,
argv
,
optstring
,
NULL
,
NULL
,
...
...
libs/port/getopt1.c
View file @
551077ab
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#include <config.h>
#include <config.h>
#endif
#endif
#ifdef HAVE_GETOPT_LONG
#ifdef HAVE_GETOPT_LONG
_ONLY
#define ELIDE_CODE
#define ELIDE_CODE
#endif
#endif
...
@@ -74,12 +74,7 @@
...
@@ -74,12 +74,7 @@
#endif
#endif
int
int
getopt_long
(
argc
,
argv
,
options
,
long_options
,
opt_index
)
getopt_long
(
int
argc
,
char
*
const
*
argv
,
const
char
*
options
,
const
struct
option
*
long_options
,
int
*
opt_index
)
int
argc
;
char
*
const
*
argv
;
const
char
*
options
;
const
struct
option
*
long_options
;
int
*
opt_index
;
{
{
return
_getopt_internal
(
argc
,
argv
,
options
,
long_options
,
opt_index
,
0
);
return
_getopt_internal
(
argc
,
argv
,
options
,
long_options
,
opt_index
,
0
);
}
}
...
@@ -90,12 +85,7 @@ getopt_long (argc, argv, options, long_options, opt_index)
...
@@ -90,12 +85,7 @@ getopt_long (argc, argv, options, long_options, opt_index)
instead. */
instead. */
int
int
getopt_long_only
(
argc
,
argv
,
options
,
long_options
,
opt_index
)
getopt_long_only
(
int
argc
,
char
*
const
*
argv
,
const
char
*
options
,
const
struct
option
*
long_options
,
int
*
opt_index
)
int
argc
;
char
*
const
*
argv
;
const
char
*
options
;
const
struct
option
*
long_options
;
int
*
opt_index
;
{
{
return
_getopt_internal
(
argc
,
argv
,
options
,
long_options
,
opt_index
,
1
);
return
_getopt_internal
(
argc
,
argv
,
options
,
long_options
,
opt_index
,
1
);
}
}
...
...
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