Trac #264: fix mingw32 build with mingw32-runtime versions <= 3.13

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4871 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
martin 2010-11-08 11:17:09 +00:00
parent 2e9c72ec5e
commit ab6511cb63
4 changed files with 6 additions and 6 deletions

View File

@ -240,7 +240,7 @@ AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([ \
getpass gettimeofday memset mkdir \
strdup strerror getopt_long \
strdup strerror getopt_long getopt_long_only \
strlcpy strlcat
])
AC_CHECK_SIZEOF(void *)

View File

@ -18,5 +18,5 @@ libcompat_la_SOURCES = \
compat_getopt.h compat_getopt.c \
simclist.c simclist.h
compat_getopt_main_LIBS = libcompat_la
compat_getopt_main_LDADD = libcompat.la

View File

@ -25,7 +25,7 @@
#include "config.h"
#ifndef HAVE_GETOPT_H
#if ! ( defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) && defined(HAVE_GETOPT_LONG_ONLY) )
#include <sys/types.h>
#include <stdlib.h>

View File

@ -30,7 +30,7 @@
#include "config.h"
#endif
#ifdef HAVE_GETOPT_H
#if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT_LONG) && defined(HAVE_GETOPT_LONG_ONLY)
#include <getopt.h>
#else
@ -83,6 +83,6 @@ extern int _my_getopt_internal(int argc, char * argv[], const char *shortopts,
}
#endif
#endif /* HAVE_GETOPT_H */
#endif /* HAVE_GETOPT_H && HAVE_GETOPT_LONG && HAVE_GETOPT_LONG_ONLY */
#endif /* MY_GETOPT_H_INCLUDED */