Commit f231232b by Frank Henigman Committed by Commit Bot

vulkan: assume secure_getenv().

Vulkan's cmake files check for the availability of secure_getenv() but we just assume it exists. BUG=chromium:717558 Change-Id: I22054c3967f543d163dde37b9a6b13e896da7a50 Reviewed-on: https://chromium-review.googlesource.com/494126 Commit-Queue: Frank Henigman <fjhenigman@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 8562b773
......@@ -203,6 +203,10 @@ config("vulkan_loader_config") {
if (is_win) {
cflags = [ "/wd4201" ]
}
if (is_linux) {
# assume secure_getenv() is available
defines += [ "HAVE_SECURE_GETENV" ]
}
}
static_library("vulkan_loader") {
......
......@@ -963,6 +963,7 @@
'defines':
[
'DEFAULT_VK_LAYERS_PATH="."',
'HAVE_SECURE_GETENV',
'LAYERS_SOURCE_PATH="<(vulkan_json)"',
'VK_USE_PLATFORM_XCB_KHR',
'VK_USE_PLATFORM_XCB_KHX',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment