1
0
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:
ckolivas 2012-02-04 10:18:29 +11:00
parent e0b0a6c030
commit 7d97ed6dd6
4 changed files with 10 additions and 1 deletions

View File

@ -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]

View File

@ -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
View File

@ -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;

View File

@ -526,6 +526,8 @@ struct work_restart {
char padding[128 - sizeof(unsigned long)];
};
extern void thread_reportin(struct thr_info *thr);
extern void kill_work(void);
extern void reinit_device(struct cgpu_info *cgpu);