mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Update configure.ac
#include <unistd.h> no #include <process.h> needed in linux, fixes make warning
This commit is contained in:
parent
83d71da225
commit
ff45bb3a85
21
configure.ac
21
configure.ac
@ -295,12 +295,21 @@ fi
|
|||||||
AM_CONDITIONAL(USE_GIT_VERSION, [test x$usegitver = xyes])
|
AM_CONDITIONAL(USE_GIT_VERSION, [test x$usegitver = xyes])
|
||||||
|
|
||||||
#check execv signature
|
#check execv signature
|
||||||
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
if test "x$have_linux" == xtrue; then
|
||||||
#include <process.h>
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||||
int execv(const char*, char *const*);
|
#include <unistd.h>
|
||||||
])],
|
int execv(const char*, char *const*);
|
||||||
AC_DEFINE([EXECV_2ND_ARG_TYPE], [char* const*], [int execv(const char*, char*const*);]),
|
])],
|
||||||
AC_DEFINE([EXECV_2ND_ARG_TYPE], [const char* const*], [int execv(const char*, const char*const*);]))
|
AC_DEFINE([EXECV_2ND_ARG_TYPE], [char* const*], [int execv(const char*, char*const*);]),
|
||||||
|
AC_DEFINE([EXECV_2ND_ARG_TYPE], [const char* const*], [int execv(const char*, const char*const*);]))
|
||||||
|
else
|
||||||
|
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
|
||||||
|
#include <process.h>
|
||||||
|
int execv(const char*, char *const*);
|
||||||
|
])],
|
||||||
|
AC_DEFINE([EXECV_2ND_ARG_TYPE], [char* const*], [int execv(const char*, char*const*);]),
|
||||||
|
AC_DEFINE([EXECV_2ND_ARG_TYPE], [const char* const*], [int execv(const char*, const char*const*);]))
|
||||||
|
fi
|
||||||
|
|
||||||
dnl CCAN wants to know a lot of vars.
|
dnl CCAN wants to know a lot of vars.
|
||||||
# All the configuration checks. Regrettably, the __attribute__ checks will
|
# All the configuration checks. Regrettably, the __attribute__ checks will
|
||||||
|
Loading…
x
Reference in New Issue
Block a user