1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-09 20:21:01 +00:00

fix mingw ncurses, fix git warning

This commit is contained in:
R4SAS 2017-06-14 21:53:07 +03:00
parent c1293dd66e
commit 916eb21aa3
4 changed files with 14 additions and 2 deletions

View File

@ -27,7 +27,7 @@ endif
sgminer_CPPFLAGS += $(ADL_CPPFLAGS) sgminer_CPPFLAGS += $(ADL_CPPFLAGS)
if USE_GIT_VERSION if USE_GIT_VERSION
GIT_VERSION := $(shell sh -c 'git describe --abbrev=4 --dirty') GIT_VERSION := $(shell sh -c 'git describe --tags --abbrev=4 --dirty')
sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" sgminer_CPPFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif endif

6
adl.c
View File

@ -16,7 +16,11 @@
#include <math.h> #include <math.h>
#ifdef HAVE_CURSES #ifdef HAVE_CURSES
# include <curses.h> #if defined(__MINGW32__)
#include <ncurses/curses.h>
#else
#include <curses.h>
#endif // defined(__MINGW32__)
#endif #endif
#include "miner.h" #include "miner.h"

View File

@ -12,7 +12,11 @@
#include "config.h" #include "config.h"
#ifdef HAVE_CURSES #ifdef HAVE_CURSES
#if defined(__MINGW32__)
#include <ncurses/curses.h>
#else
#include <curses.h> #include <curses.h>
#endif // defined(__MINGW32__)
#endif #endif
#include <string.h> #include <string.h>

View File

@ -13,7 +13,11 @@
#include "config.h" #include "config.h"
#ifdef HAVE_CURSES #ifdef HAVE_CURSES
#if defined(__MINGW32__)
#include <ncurses/curses.h>
#else
#include <curses.h> #include <curses.h>
#endif // defined(__MINGW32__)
#endif #endif
#include <stdio.h> #include <stdio.h>