diff options
Diffstat (limited to 'patches/arc4random.c.patch')
-rw-r--r-- | patches/arc4random.c.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/arc4random.c.patch b/patches/arc4random.c.patch new file mode 100644 index 0000000..9f9c476 --- /dev/null +++ b/patches/arc4random.c.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | --- crypto/compat/arc4random.c.orig 2015-07-20 07:41:17.000000000 -0600 | ||
2 | +++ crypto/compat/arc4random.c 2015-07-20 07:41:58.000000000 -0600 | ||
3 | @@ -36,8 +36,11 @@ | ||
4 | #define KEYSTREAM_ONLY | ||
5 | #include "chacha_private.h" | ||
6 | |||
7 | +#ifndef min | ||
8 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ||
9 | -#ifdef __GNUC__ | ||
10 | +#endif | ||
11 | + | ||
12 | +#if defined(__GNUC__) || defined(_MSC_VER) | ||
13 | #define inline __inline | ||
14 | #else /* !__GNUC__ */ | ||
15 | #define inline | ||