Skip to content

Commit

Permalink
Fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasjones committed May 18, 2014
1 parent 2e8fc87 commit 96c65c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ bin_PROGRAMS = minerd
dist_man_MANS = minerd.1

minerd_SOURCES = elist.h \
miner.h \
compat.h \
miner.h \
compat.h \
cpu-miner.c \
util.c \
sha2.c \
Expand Down Expand Up @@ -62,4 +62,8 @@ endif
minerd_LDFLAGS = $(PTHREAD_FLAGS)
minerd_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ -lcrypto
minerd_CPPFLAGS = @LIBCURL_CPPFLAGS@
minerd_CFLAGS =

if HAVE_WINDOWS
minerd_CFLAGS += -Wl,--stack,10485760
endif
2 changes: 1 addition & 1 deletion cpu-miner.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ static void share_result(int result, struct work *work, const char *reason) {
applog(LOG_INFO, "accepted: %lu/%lu (%.2f%%), %.2f H/s at diff %g %s",
accepted_count, accepted_count + rejected_count,
100. * accepted_count / (accepted_count + rejected_count), hashrate,
result ? (((double) 0xffffffff) / (work ? work->target[7] : rpc2_target)) : 0,
(((double) 0xffffffff) / (work ? work->target[7] : rpc2_target)),
result ? "(yay!!!)" : "(booooo)");
break;
default:
Expand Down

0 comments on commit 96c65c4

Please sign in to comment.