Browse Source

Expect arc4random on glib 2.36. Resolves #7.

Brucey 2 years ago
parent
commit
1f412677c3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      core.mod/include/config.h

+ 4 - 0
core.mod/include/config.h

@@ -289,6 +289,10 @@
 #define HAVE_ARC4RANDOM_BUF 1
 #endif
 
+#if defined(__linux__) && (defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 36) || __GLIBC__ > 2))
+#define HAVE_ARC4RANDOM_BUF 1
+#endif
+
 /* Define to 1 if you have the <attr/xattr.h> header file. */
 /* #undef HAVE_ATTR_XATTR_H */