spack/var/spack/repos/builtin/packages/gotcha/arm.patch
Toyohisa Kameyama ff877a567e Gotcha package: fixed to build on ARM. (#11840)
Apply patch to current version which has not yet been merged in the
upstream package repo.
2019-06-27 15:34:11 -07:00

20 lines
598 B
Diff

commit 6f494384b0f00513d950b94a60c14ad1c20eb353
Author: David Poliakoff <david.poliakoff@gmail.com>
Date: Thu Sep 20 10:59:54 2018 -0700
Pushed fix to help build on ARM systems
diff --git a/src/libc_wrappers.c b/src/libc_wrappers.c
index 504e31a..5937e5a 100644
--- a/src/libc_wrappers.c
+++ b/src/libc_wrappers.c
@@ -358,7 +358,7 @@ int gotcha_open(const char *pathname, int flags, ...)
}
va_end(args);
- result = syscall(SYS_open, pathname, flags, mode);
+ result = syscall(SYS_openat, AT_FDCWD, pathname, flags, mode);
if (result >= 0)
return (int) result;