summaryrefslogtreecommitdiff
path: root/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-09 16:16:44 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-04-09 16:16:44 +0000
commit2ca11ad655718c5455eef5a8628df6f37859220d (patch)
tree7911c81b451aff426be7a2a863e33d6b92c08169 /user/xorg-gtest/remove-ridiculous-va_list-hacks.patch
parent2aef9276762b9754830aa2e2114bc715233bd6c6 (diff)
downloadpackages-2ca11ad655718c5455eef5a8628df6f37859220d.tar.gz
packages-2ca11ad655718c5455eef5a8628df6f37859220d.tar.bz2
packages-2ca11ad655718c5455eef5a8628df6f37859220d.tar.xz
packages-2ca11ad655718c5455eef5a8628df6f37859220d.zip
user/xorg-gtest: remove atrocious hack so arm64 builds
Diffstat (limited to 'user/xorg-gtest/remove-ridiculous-va_list-hacks.patch')
-rw-r--r--user/xorg-gtest/remove-ridiculous-va_list-hacks.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch b/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch
new file mode 100644
index 000000000..b26d6a888
--- /dev/null
+++ b/user/xorg-gtest/remove-ridiculous-va_list-hacks.patch
@@ -0,0 +1,24 @@
+--- xorg-gtest-xorg-gtest-0.7.1/src/process.cpp.old 2013-02-24 22:15:08.000000000 +0000
++++ xorg-gtest-xorg-gtest-0.7.1/src/process.cpp 2019-04-09 16:12:31.822094989 +0000
+@@ -126,15 +126,12 @@
+
+ void xorg::testing::Process::Start(const std::string& program, va_list args) {
+ std::vector<std::string> argv;
+-
+- if (args) {
+- char *arg;
+- do {
+- arg = va_arg(args, char*);
+- if (arg)
+- argv.push_back(std::string(arg));
+- } while (arg);
+- }
++ char *arg;
++ do {
++ arg = va_arg(args, char*);
++ if (arg)
++ argv.push_back(std::string(arg));
++ } while (arg);
+
+ Start(program, argv);
+ }