diff options
Diffstat (limited to 'project/config')
-rw-r--r-- | project/config/cfgdefs.sh | 9 |
1 files changed, 9 insertions, 0 deletions
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' |