diff options
Diffstat (limited to 'community/chromium/secure_getenv.patch')
-rw-r--r-- | community/chromium/secure_getenv.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/community/chromium/secure_getenv.patch b/community/chromium/secure_getenv.patch deleted file mode 100644 index 9ab048b626..0000000000 --- a/community/chromium/secure_getenv.patch +++ /dev/null @@ -1,33 +0,0 @@ ---- ./third_party/angle/third_party/vulkan-loader/src/loader/loader.c.orig -+++ ./third_party/angle/third_party/vulkan-loader/src/loader/loader.c -@@ -35,6 +35,9 @@ - #include <stdbool.h> - #include <string.h> - #include <stddef.h> -+#if defined(HAVE_GETAUXVAL) -+#include <sys/auxv.h> -+#endif - - #if defined(__APPLE__) - #include <CoreFoundation/CoreFoundation.h> -@@ -256,6 +259,8 @@ - #elif defined(HAVE___SECURE_GETENV) - (void)inst; - return __secure_getenv(name); -+#elif defined(HAVE_GETAUXVAL) -+ return getauxval(AT_SECURE) ? NULL : getenv(name); - #else - #pragma message( \ - "Warning: Falling back to non-secure getenv for environmental lookups! Consider" \ ---- ./third_party/angle/third_party/vulkan-loader/BUILD.gn.orig -+++ ./third_party/angle/third_party/vulkan-loader/BUILD.gn -@@ -264,8 +264,7 @@ - cflags = [ "/wd4201" ] - } - if (is_linux) { -- # assume secure_getenv() is available -- defines += [ "HAVE_SECURE_GETENV" ] -+ defines += [ "HAVE_GETAUXVAL" ] - } - } - |