Browse Source

linux: fix missing dirname include

master
Tanguy Pruvot 10 years ago
parent
commit
09c3ac6b4b
  1. 2
      compat.h
  2. 3
      nvml.cpp
  3. 4
      quark/cuda_bmw512.cu

2
compat.h

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

3
nvml.cpp

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

4
quark/cuda_bmw512.cu

@ -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 },

Loading…
Cancel
Save