1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-03-09 12:11:02 +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

@ -27,7 +27,7 @@ endif
sgminer_CPPFLAGS += $(ADL_CPPFLAGS)
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)\"
endif

6
adl.c

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

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

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