1
0
mirror of https://github.com/GOSTSec/ccminer synced 2025-01-08 22:07:56 +00:00

linux: fix missing dirname include

This commit is contained in:
Tanguy Pruvot 2015-02-11 18:36:36 +01:00
parent 5dd2534df9
commit 09c3ac6b4b
3 changed files with 4 additions and 5 deletions

View File

@ -69,6 +69,8 @@ static __inline char * dirname(char *file) {
# define _ALIGN(x) __declspec(align(x)) # define _ALIGN(x) __declspec(align(x))
#else #else
# define _ALIGN(x) __attribute__ ((aligned(x))) # define _ALIGN(x) __attribute__ ((aligned(x)))
/* dirname() for linux/mingw */
#include <libgen.h>
#endif #endif
#ifndef WIN32 #ifndef WIN32

View File

@ -18,9 +18,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#ifndef _MSC_VER
#include <libgen.h>
#endif
#include "miner.h" #include "miner.h"
#include "nvml.h" #include "nvml.h"

View File

@ -397,8 +397,8 @@ void quark_bmw512_gpu_hash_80(uint32_t threads, uint32_t startNounce, uint64_t *
{ 0xACADAEAFUL, 0xA8A9AAABUL }, { 0xACADAEAFUL, 0xA8A9AAABUL },
{ 0xB4B5B6B7UL, 0xB0B1B2B3UL }, { 0xB4B5B6B7UL, 0xB0B1B2B3UL },
{ 0xBCBDBEBFUL, 0xB8B9BABBUL }, { 0xBCBDBEBFUL, 0xB8B9BABBUL },
{ 0xC4C5C6C7UL, 0xC0C1C2C3UL, }, { 0xC4C5C6C7UL, 0xC0C1C2C3UL },
{ 0xCCCDCECFUL, 0xC8C9CACBUL, }, { 0xCCCDCECFUL, 0xC8C9CACBUL },
{ 0xD4D5D6D7UL, 0xD0D1D2D3UL }, { 0xD4D5D6D7UL, 0xD0D1D2D3UL },
{ 0xDCDDDEDFUL, 0xD8D9DADBUL }, { 0xDCDDDEDFUL, 0xD8D9DADBUL },
{ 0xE4E5E6E7UL, 0xE0E1E2E3UL }, { 0xE4E5E6E7UL, 0xE0E1E2E3UL },