From 0d929e5cc17857483810f994de5e5334dfc46d02 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 19 Dec 2018 10:27:40 -0500 Subject: project: custom config: properly detect getrandom availability. --- project/config/cfgdefs.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'project') diff --git a/project/config/cfgdefs.sh b/project/config/cfgdefs.sh index 750de3a..a94a143 100644 --- a/project/config/cfgdefs.sh +++ b/project/config/cfgdefs.sh @@ -105,6 +105,15 @@ cfgdefs_perform_common_tests() mb_cfgtest_headers='sys/sendfile.h' cfgtest_interface_presence 'sendfile' + # getrandom: easier to simply test, + # than to test whether we need to test + # (and then test). + mb_cfgtest_headers='sys/syscall.h' + + if cfgtest_decl_presence 'SYS_getrandom'; then + cfgtest_cflags_append '-DHAVE_GETRANDOM_SYSCALL' + fi + # ncurses: python refers to members of typedef struct _win_st WINDOW cfgtest_cflags_append '-DNCURSES_INTERNALS' -- cgit v1.2.3