From 09c3ac6b4b0a8cd99a7ac98bd3c2c8b4ab5a803a Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Wed, 11 Feb 2015 18:36:36 +0100 Subject: [PATCH] linux: fix missing dirname include --- compat.h | 2 ++ nvml.cpp | 3 --- quark/cuda_bmw512.cu | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/compat.h b/compat.h index a136bb2..7f993ab 100644 --- a/compat.h +++ b/compat.h @@ -69,6 +69,8 @@ static __inline char * dirname(char *file) { # define _ALIGN(x) __declspec(align(x)) #else # define _ALIGN(x) __attribute__ ((aligned(x))) +/* dirname() for linux/mingw */ +#include #endif #ifndef WIN32 diff --git a/nvml.cpp b/nvml.cpp index 8be79b0..4868444 100644 --- a/nvml.cpp +++ b/nvml.cpp @@ -18,9 +18,6 @@ #include #include #include -#ifndef _MSC_VER -#include -#endif #include "miner.h" #include "nvml.h" diff --git a/quark/cuda_bmw512.cu b/quark/cuda_bmw512.cu index 36abaf3..bc5e69d 100644 --- a/quark/cuda_bmw512.cu +++ b/quark/cuda_bmw512.cu @@ -397,8 +397,8 @@ void quark_bmw512_gpu_hash_80(uint32_t threads, uint32_t startNounce, uint64_t * { 0xACADAEAFUL, 0xA8A9AAABUL }, { 0xB4B5B6B7UL, 0xB0B1B2B3UL }, { 0xBCBDBEBFUL, 0xB8B9BABBUL }, - { 0xC4C5C6C7UL, 0xC0C1C2C3UL, }, - { 0xCCCDCECFUL, 0xC8C9CACBUL, }, + { 0xC4C5C6C7UL, 0xC0C1C2C3UL }, + { 0xCCCDCECFUL, 0xC8C9CACBUL }, { 0xD4D5D6D7UL, 0xD0D1D2D3UL }, { 0xDCDDDEDFUL, 0xD8D9DADBUL }, { 0xE4E5E6E7UL, 0xE0E1E2E3UL },