mirror of
https://git.freebsd.org/ports.git
synced 2025-06-19 19:50:31 -04:00
- compile in C++11 mode as is required by qBittorrent versions after 3.3.4 PR: 212235 Submitted by: matthew@reztek.cz (maintainer)
11 lines
354 B
C
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
|