aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2017-05-15 18:18:58 +0800
committermartymac <martymac@FreeBSD.org>2017-05-15 18:18:58 +0800
commitd09f85a55aba2046b789806cf8aa74c69bdead0e (patch)
tree09ea2fb40886f8715f740cf32494e5b96a636175 /devel
parent12448df2a1b2fc206ae06fa02a91767a84e9daf8 (diff)
downloadfreebsd-ports-gnome-d09f85a55aba2046b789806cf8aa74c69bdead0e.tar.gz
freebsd-ports-gnome-d09f85a55aba2046b789806cf8aa74c69bdead0e.tar.zst
freebsd-ports-gnome-d09f85a55aba2046b789806cf8aa74c69bdead0e.zip
Fix build with Gcc 6
PR: 219283 Submitted by: jbeich
Diffstat (limited to 'devel')
-rw-r--r--devel/raknet/files/patch-Source-RakPeer.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/raknet/files/patch-Source-RakPeer.cpp b/devel/raknet/files/patch-Source-RakPeer.cpp
new file mode 100644
index 000000000000..20815f6f855f
--- /dev/null
+++ b/devel/raknet/files/patch-Source-RakPeer.cpp
@@ -0,0 +1,11 @@
+--- Source/RakPeer.cpp.orig 2017-05-14 20:20:15.087088000 +0000
++++ Source/RakPeer.cpp 2017-05-14 20:26:50.670623000 +0000
+@@ -154,7 +154,7 @@
+ // Should be different than any message that could result from messages from the reliability layer
+ #pragma warning(disable:4309) // 'initializing' : truncation of constant value
+ // Make sure highest bit is 0, so isValid in DatagramHeaderFormat is false
+-static const char OFFLINE_MESSAGE_DATA_ID[16]={0x00,0xFF,0xFF,0x00,0xFE,0xFE,0xFE,0xFE,0xFD,0xFD,0xFD,0xFD,0x12,0x34,0x56,0x78};
++static const unsigned char OFFLINE_MESSAGE_DATA_ID[16]={0x00,0xFF,0xFF,0x00,0xFE,0xFE,0xFE,0xFE,0xFD,0xFD,0xFD,0xFD,0x12,0x34,0x56,0x78};
+
+ //#define _DO_PRINTF
+