util: Provide a secure_getenv fallback for platforms without it

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27381>
(cherry picked from commit 8b209a62006ad6fd4593bb4f528ce8aee23fc038)
This commit is contained in:
Friedrich Vock 2024-01-31 12:26:58 +01:00 committed by Eric Engestrom
parent 6924679fff
commit ec4d013e82
3 changed files with 10 additions and 1 deletions

View file

@ -1378,6 +1378,7 @@ functions_to_detect = {
'getrandom': '',
'qsort_s': '',
'posix_fallocate': '',
'secure_getenv': '',
}
foreach f, prefix: functions_to_detect