libport: Remove the getopt_long() implementation.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
93609869c8
commit
a01532200d
|
@ -7480,7 +7480,6 @@ for ac_header in \
|
|||
dlfcn.h \
|
||||
elf.h \
|
||||
float.h \
|
||||
getopt.h \
|
||||
gettext-po.h \
|
||||
grp.h \
|
||||
gsm.h \
|
||||
|
@ -17907,7 +17906,6 @@ for ac_func in \
|
|||
getattrlist \
|
||||
getauxval \
|
||||
getifaddrs \
|
||||
getopt_long_only \
|
||||
getrandom \
|
||||
kqueue \
|
||||
lstat \
|
||||
|
@ -18874,20 +18872,6 @@ _ACEOF
|
|||
fi
|
||||
|
||||
|
||||
ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif
|
||||
"
|
||||
if test "x$ac_cv_member_struct_option_name" = xyes; then :
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_STRUCT_OPTION_NAME 1
|
||||
_ACEOF
|
||||
|
||||
|
||||
fi
|
||||
|
||||
|
||||
ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
|
||||
if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
|
||||
|
||||
|
|
|
@ -450,7 +450,6 @@ AC_CHECK_HEADERS(\
|
|||
dlfcn.h \
|
||||
elf.h \
|
||||
float.h \
|
||||
getopt.h \
|
||||
gettext-po.h \
|
||||
grp.h \
|
||||
gsm.h \
|
||||
|
@ -2138,7 +2137,6 @@ AC_CHECK_FUNCS(\
|
|||
getattrlist \
|
||||
getauxval \
|
||||
getifaddrs \
|
||||
getopt_long_only \
|
||||
getrandom \
|
||||
kqueue \
|
||||
lstat \
|
||||
|
@ -2364,12 +2362,6 @@ AC_CHECK_MEMBERS([struct mtget.mt_blksiz, struct mtget.mt_gstat, struct mtget.mt
|
|||
#include <sys/mtio.h>
|
||||
#endif])
|
||||
|
||||
dnl Check for struct option
|
||||
AC_CHECK_MEMBERS([struct option.name],,,
|
||||
[#ifdef HAVE_GETOPT_H
|
||||
#include <getopt.h>
|
||||
#endif])
|
||||
|
||||
dnl Check for stat.st_blocks and ns-resolved times
|
||||
AC_CHECK_MEMBERS([
|
||||
struct stat.st_blocks,
|
||||
|
|
|
@ -135,12 +135,6 @@
|
|||
/* Define to 1 if you have the `getifaddrs' function. */
|
||||
#undef HAVE_GETIFADDRS
|
||||
|
||||
/* Define to 1 if you have the <getopt.h> header file. */
|
||||
#undef HAVE_GETOPT_H
|
||||
|
||||
/* Define to 1 if you have the `getopt_long_only' function. */
|
||||
#undef HAVE_GETOPT_LONG_ONLY
|
||||
|
||||
/* Define to 1 if you have the `getrandom' function. */
|
||||
#undef HAVE_GETRANDOM
|
||||
|
||||
|
@ -630,9 +624,6 @@
|
|||
/* Define to 1 if `mt_gstat' is a member of `struct mtget'. */
|
||||
#undef HAVE_STRUCT_MTGET_MT_GSTAT
|
||||
|
||||
/* Define to 1 if `name' is a member of `struct option'. */
|
||||
#undef HAVE_STRUCT_OPTION_NAME
|
||||
|
||||
/* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */
|
||||
#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID
|
||||
|
||||
|
|
|
@ -165,31 +165,6 @@ extern int _spawnvp(int mode, const char *cmdname, const char * const argv[]);
|
|||
* Function definitions (only when using libwine_port)
|
||||
*/
|
||||
|
||||
#ifndef HAVE_GETOPT_LONG_ONLY
|
||||
extern char *optarg;
|
||||
extern int optind;
|
||||
extern int opterr;
|
||||
extern int optopt;
|
||||
struct option;
|
||||
|
||||
#ifndef HAVE_STRUCT_OPTION_NAME
|
||||
struct option
|
||||
{
|
||||
const char *name;
|
||||
int has_arg;
|
||||
int *flag;
|
||||
int val;
|
||||
};
|
||||
#endif
|
||||
|
||||
extern int getopt_long (int ___argc, char *const *___argv,
|
||||
const char *__shortopts,
|
||||
const struct option *__longopts, int *__longind);
|
||||
extern int getopt_long_only (int ___argc, char *const *___argv,
|
||||
const char *__shortopts,
|
||||
const struct option *__longopts, int *__longind);
|
||||
#endif /* HAVE_GETOPT_LONG_ONLY */
|
||||
|
||||
#ifndef HAVE_LSTAT
|
||||
int lstat(const char *file_name, struct stat *buf);
|
||||
#endif /* HAVE_LSTAT */
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
STATICLIB = libwine_port.a
|
||||
|
||||
C_SRCS = \
|
||||
getopt.c \
|
||||
lstat.c \
|
||||
mkstemps.c \
|
||||
readlink.c \
|
||||
|
|
1140
libs/port/getopt.c
1140
libs/port/getopt.c
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue