summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-02-14 17:42:45 +0100
committerGitHub <noreply@github.com>2020-02-14 17:42:45 +0100
commit6d3809b25e5404cb2f05de6830fb25bbb3e8b94b (patch)
tree4fe07a7d5165e05ef77a85850bb032a12359d230
parent4a5eab05f5f3aa06f877229a43295a8c60db03c1 (diff)
parent79a7be6e7d543afc13467c35c47062724df1bd69 (diff)
Merge pull request #36214 from akien-mga/vulkan-loader-secure_getenv
Vulkan-Loader: Mark secure_getenv as available on Linux
-rw-r--r--drivers/vulkan/SCsub4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/vulkan/SCsub b/drivers/vulkan/SCsub
index 8d6eb6b199..2576f68f92 100644
--- a/drivers/vulkan/SCsub
+++ b/drivers/vulkan/SCsub
@@ -57,6 +57,10 @@ if env['builtin_vulkan']:
'FALLBACK_DATA_DIRS=\\"%s\\"' % '/usr/local/share:/usr/share',
'FALLBACK_CONFIG_DIRS=\\"%s\\"' % '/etc/xdg'
])
+ import platform
+ if (platform.system() == "Linux"):
+ # In glibc since 2.17 and musl libc since 1.1.24. Used by loader.c.
+ env_thirdparty.AppendUnique(CPPDEFINES=['HAVE_SECURE_GETENV'])
loader_sources = [thirdparty_dir + "/loader/" + file for file in loader_sources]
env_thirdparty.add_source_files(env.drivers_sources, loader_sources)