libport: Remove the getopt_long() implementation.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-05 11:54:00 +02:00
parent 93609869c8
commit a01532200d
6 changed files with 0 additions and 1199 deletions

16
configure vendored
View File

@ -7480,7 +7480,6 @@ for ac_header in \
dlfcn.h \ dlfcn.h \
elf.h \ elf.h \
float.h \ float.h \
getopt.h \
gettext-po.h \ gettext-po.h \
grp.h \ grp.h \
gsm.h \ gsm.h \
@ -17907,7 +17906,6 @@ for ac_func in \
getattrlist \ getattrlist \
getauxval \ getauxval \
getifaddrs \ getifaddrs \
getopt_long_only \
getrandom \ getrandom \
kqueue \ kqueue \
lstat \ lstat \
@ -18874,20 +18872,6 @@ _ACEOF
fi 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" 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 : if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :

View File

@ -450,7 +450,6 @@ AC_CHECK_HEADERS(\
dlfcn.h \ dlfcn.h \
elf.h \ elf.h \
float.h \ float.h \
getopt.h \
gettext-po.h \ gettext-po.h \
grp.h \ grp.h \
gsm.h \ gsm.h \
@ -2138,7 +2137,6 @@ AC_CHECK_FUNCS(\
getattrlist \ getattrlist \
getauxval \ getauxval \
getifaddrs \ getifaddrs \
getopt_long_only \
getrandom \ getrandom \
kqueue \ kqueue \
lstat \ lstat \
@ -2364,12 +2362,6 @@ AC_CHECK_MEMBERS([struct mtget.mt_blksiz, struct mtget.mt_gstat, struct mtget.mt
#include <sys/mtio.h> #include <sys/mtio.h>
#endif]) #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 dnl Check for stat.st_blocks and ns-resolved times
AC_CHECK_MEMBERS([ AC_CHECK_MEMBERS([
struct stat.st_blocks, struct stat.st_blocks,

View File

@ -135,12 +135,6 @@
/* Define to 1 if you have the `getifaddrs' function. */ /* Define to 1 if you have the `getifaddrs' function. */
#undef HAVE_GETIFADDRS #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. */ /* Define to 1 if you have the `getrandom' function. */
#undef HAVE_GETRANDOM #undef HAVE_GETRANDOM
@ -630,9 +624,6 @@
/* Define to 1 if `mt_gstat' is a member of `struct mtget'. */ /* Define to 1 if `mt_gstat' is a member of `struct mtget'. */
#undef HAVE_STRUCT_MTGET_MT_GSTAT #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'. */ /* Define to 1 if `sin6_scope_id' is a member of `struct sockaddr_in6'. */
#undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID #undef HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID

View File

@ -165,31 +165,6 @@ extern int _spawnvp(int mode, const char *cmdname, const char * const argv[]);
* Function definitions (only when using libwine_port) * 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 #ifndef HAVE_LSTAT
int lstat(const char *file_name, struct stat *buf); int lstat(const char *file_name, struct stat *buf);
#endif /* HAVE_LSTAT */ #endif /* HAVE_LSTAT */

View File

@ -1,7 +1,6 @@
STATICLIB = libwine_port.a STATICLIB = libwine_port.a
C_SRCS = \ C_SRCS = \
getopt.c \
lstat.c \ lstat.c \
mkstemps.c \ mkstemps.c \
readlink.c \ readlink.c \

File diff suppressed because it is too large Load Diff