[PATCH xserver 1/4] meson: Detect arc4random_buf

Peter Harris pharris at opentext.com
Tue May 9 23:39:44 UTC 2017


Signed-off-by: Peter Harris <pharris at opentext.com>
---
 include/meson.build | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/meson.build b/include/meson.build
index 761f158d7..d032fb37f 100644
--- a/include/meson.build
+++ b/include/meson.build
@@ -98,6 +98,7 @@ conf_data.set('HAVE_SYS_UTSNAME_H', cc.has_header('sys/utsname.h'))
 conf_data.set('HAVE_SYS_SYSMACROS_H', cc.has_header('sys/sysmacros.h'))
 conf_data.set('HAVE_UNISTD_H', cc.has_header('unistd.h'))
 
+conf_data.set('HAVE_ARC4RANDOM_BUF', cc.has_function('arc4random_buf', dependencies: libbsd_dep))
 conf_data.set('HAVE_BACKTRACE', cc.has_function('backtrace'))
 conf_data.set('HAVE_CBRT', cc.has_function('cbrt'))
 conf_data.set('HAVE_EPOLL_CREATE', cc.has_function('epoll_create'))
-- 
2.11.0



More information about the xorg-devel mailing list