Browse Source

linux: fix missing dirname include

2upstream
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) { @@ -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 <libgen.h>
#endif
#ifndef WIN32

3
nvml.cpp

@ -18,9 +18,6 @@ @@ -18,9 +18,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#ifndef _MSC_VER
#include <libgen.h>
#endif
#include "miner.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 * @@ -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 },

Loading…
Cancel
Save