From 5fb69ba4536f8f7aa0b787fa1de4e0dc8177f8e7 Mon Sep 17 00:00:00 2001 From: Xiangfu Date: Mon, 23 Jul 2012 12:38:47 +0800 Subject: [PATCH] cgminer: update to 2.5.0 --- cgminer/Makefile | 4 ++-- cgminer/patches/0001-add-roundl-define.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 cgminer/patches/0001-add-roundl-define.patch diff --git a/cgminer/Makefile b/cgminer/Makefile index 5e4d9c9..be12566 100644 --- a/cgminer/Makefile +++ b/cgminer/Makefile @@ -9,8 +9,8 @@ include $(TOPDIR)/rules.mk PKG_NAME:=cgminer -PKG_VERSION:=20120516 -PKG_REV:=b69d735cfe468c489a24677ffef1d6d998818cac +PKG_VERSION:=20120723 +PKG_REV:=4abecc26745c8fb473b6df67ac55f85e95a85275 # this is upstream version 2.4.1 PKG_RELEASE:=4 PKG_INSTALL:=1 diff --git a/cgminer/patches/0001-add-roundl-define.patch b/cgminer/patches/0001-add-roundl-define.patch new file mode 100644 index 0000000..966af7e --- /dev/null +++ b/cgminer/patches/0001-add-roundl-define.patch @@ -0,0 +1,15 @@ +diff --git a/miner.h b/miner.h +index 120d763..7b7d6d5 100644 +--- a/miner.h ++++ b/miner.h +@@ -159,6 +159,10 @@ void *alloca (size_t); + #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) + #endif + ++#ifndef roundl ++#define roundl(x) (long double)((long long)((x==0)?0.0:((x)+((x)>0)?0.5:-0.5))) ++#endif ++ + enum alive { + LIFE_WELL, + LIFE_SICK,