Skip to content

Commit

Permalink
linux: fix missing dirname include
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Feb 11, 2015
1 parent 5dd2534 commit 09c3ac6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions nvml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions quark/cuda_bmw512.cu
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
Expand Down

0 comments on commit 09c3ac6

Please sign in to comment.