Browse Source

Expect arc4random on glib 2.36. Resolves #7.

Brucey 2 năm trước cách đây
mục cha
commit
1f412677c3
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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 */