-
Notifications
You must be signed in to change notification settings - Fork 0
/
osx32Vroomcoin.patch
64 lines (55 loc) · 1.64 KB
/
osx32Vroomcoin.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
From db9af1edb1805c6f3a1c0065b9c576e06e54673c Mon Sep 17 00:00:00 2001
From: admin0 <[email protected]>
Date: Tue, 5 Apr 2016 08:58:57 -0700
Subject: [PATCH] update
---
src/makefile.osx | 6 +++---
src/protocol.cpp | 6 ++++++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/makefile.osx b/src/makefile.osx
index 6788f48..6a4d82e 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -6,7 +6,7 @@
# Mac OS X makefile for vroomcoin
# Originally by Laszlo Hanyecz ([email protected])
-CXX=llvm-g++
+CXX=g++
DEPSDIR=/opt/local
INCLUDEPATHS= \
@@ -53,13 +53,13 @@ ifdef RELEASE
# Compile for maximum compatibility and smallest size.
# This requires that dependencies are compiled
# the same way.
-CFLAGS = -mmacosx-version-min=10.5 -arch x86_64 -O2 -msse2
+CFLAGS = -mmacosx-version-min=10.5 -arch i386 -O2 -msse2
else
CFLAGS = -g -msse2
endif
# ppc doesn't work because we don't support big-endian
-CFLAGS += -Wall -Wextra -Wformat -Wno-ignored-qualifiers -Wformat-security -Wno-unused-parameter \
+CFLAGS += -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
OBJS= \
diff --git a/src/protocol.cpp b/src/protocol.cpp
index d48dfab..05edfe3 100644
--- a/src/protocol.cpp
+++ b/src/protocol.cpp
@@ -6,11 +6,17 @@
#include "protocol.h"
#include "util.h"
#include "netbase.h"
+#include <algorithm>
#ifndef WIN32
# include <arpa/inet.h>
#endif
+size_t strnlen(const char *str, size_t strsz)
+{
+ return std::find(str, str + strsz, 0) - str;
+}
+
static const char* ppszTypeName[] =
{
"ERROR",
--
2.8.0