ports/net-p2p/libtorrent-rasterbar/files/patch-include_libtorrent_tommath.h
Kurt Jaeger 3e45d8e8de net-p2p/libtorrent-rasterbar: update 1.1.0 -> 1.1.1
- compile in C++11 mode as is required by qBittorrent versions after 3.3.4

PR:		212235
Submitted by:	matthew@reztek.cz (maintainer)
2016-10-19 05:23:20 +00:00

11 lines
354 B
C

--- include/libtorrent/tommath.h.orig 2016-08-29 10:51:22 UTC
+++ include/libtorrent/tommath.h
@@ -111,7 +111,7 @@ extern "C" {
/* use arc4random on platforms that support it */
#ifdef MP_USE_ALT_RAND
- #define MP_GEN_RANDOM() arc4random()
+ #define MP_GEN_RANDOM() (int)arc4random()
#else
#define MP_GEN_RANDOM() rand()
#endif