mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Fix various build issues.
This commit is contained in:
parent
e0b0a6c030
commit
7d97ed6dd6
@ -112,6 +112,8 @@ if test "x$ATISTREAMSDKROOT" != x; then
|
||||
OPENCL_LIBS="-L$ATISTREAMSDKROOT/lib/$ATI_STREAM_ARCH_DIR $OPENCL_LIBS"
|
||||
fi
|
||||
|
||||
cpumining="no"
|
||||
|
||||
AC_ARG_ENABLE([cpumining],
|
||||
[AC_HELP_STRING([--enable-cpumining],[Build with cpu mining support(default disabled)])],
|
||||
[cpumining=$enableval]
|
||||
@ -121,6 +123,8 @@ if test "x$cpumining" = xyes; then
|
||||
fi
|
||||
AM_CONDITIONAL([HAS_CPUMINE], [test x$cpumining = xyes])
|
||||
|
||||
opencl="yes"
|
||||
|
||||
AC_ARG_ENABLE([opencl],
|
||||
[AC_HELP_STRING([--disable-opencl],[Override detection and disable building with opencl])],
|
||||
[opencl=$enableval]
|
||||
@ -181,6 +185,8 @@ else
|
||||
DLOPEN_FLAGS=""
|
||||
fi
|
||||
|
||||
bitforce="no"
|
||||
|
||||
AC_ARG_ENABLE([bitforce],
|
||||
[AC_HELP_STRING([--enable-bitforce],[Compile support for BitForce FPGAs(default disabled)])],
|
||||
[bitforce=$enableval]
|
||||
|
@ -23,6 +23,7 @@
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
|
||||
#ifndef WIN32
|
||||
#include <sys/resource.h>
|
||||
|
2
main.c
2
main.c
@ -3896,7 +3896,7 @@ static void *api_thread(void *userdata)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void thread_reportin(struct thr_info *thr)
|
||||
void thread_reportin(struct thr_info *thr)
|
||||
{
|
||||
gettimeofday(&thr->last, NULL);
|
||||
thr->cgpu->status = LIFE_WELL;
|
||||
|
Loading…
Reference in New Issue
Block a user