mirror of
https://github.com/reactos/ccache.git
synced 2024-12-03 17:11:10 +00:00
Compile getopt_long() conditionally
This commit is contained in:
parent
ffbdbe879b
commit
d165b4ebc3
@ -181,6 +181,7 @@ AC_CHECK_HEADERS(ctype.h pwd.h stdlib.h string.h strings.h sys/time.h)
|
||||
|
||||
AC_CHECK_FUNCS(asprintf)
|
||||
AC_CHECK_FUNCS(gethostname)
|
||||
AC_CHECK_FUNCS(getopt_long)
|
||||
AC_CHECK_FUNCS(getpwuid)
|
||||
AC_CHECK_FUNCS(gettimeofday)
|
||||
AC_CHECK_FUNCS(mkstemp)
|
||||
|
@ -32,6 +32,10 @@
|
||||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifndef HAVE_GETOPT_LONG
|
||||
|
||||
#include "getopt_long.h"
|
||||
|
||||
#include <stdio.h>
|
||||
@ -189,3 +193,5 @@ getopt_long(int argc, char *const argv[],
|
||||
}
|
||||
return optopt;
|
||||
}
|
||||
|
||||
#endif /* HAVE_GETOPT_LONG */
|
||||
|
Loading…
Reference in New Issue
Block a user