SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
25
net/gtk-gnutella/patches/patch-src_lib_arc4random_h
Normal file
25
net/gtk-gnutella/patches/patch-src_lib_arc4random_h
Normal file
|
@ -0,0 +1,25 @@
|
|||
OpenBSD does not need nor provide arc4random_(addrandom|stir)
|
||||
--- src/lib/arc4random.h.orig Sun Sep 11 16:28:28 2011
|
||||
+++ src/lib/arc4random.h Tue Oct 22 19:04:07 2013
|
||||
@@ -37,9 +37,21 @@
|
||||
#include "common.h"
|
||||
|
||||
#ifndef HAS_ARC4RANDOM
|
||||
+
|
||||
guint32 arc4random(void);
|
||||
void arc4random_stir(void);
|
||||
void arc4random_addrandom(const unsigned char *dat, int datlen);
|
||||
+
|
||||
+#else
|
||||
+
|
||||
+#ifndef HAS_ARC4RANDOM_ADDRANDOM
|
||||
+#define arc4random_addrandom(a, b)
|
||||
+#endif
|
||||
+
|
||||
+#ifndef HAS_ARC4RANDOM_STIR
|
||||
+#define arc4random_stir()
|
||||
+#endif
|
||||
+
|
||||
#endif
|
||||
|
||||
#endif /* _arc4random_h_ */
|
Loading…
Add table
Add a link
Reference in a new issue