summary refs log tree commit diff
path: root/gnu/packages/patches/libaio-32bit-test.patch
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2023-03-18 10:36:22 +0100
committerAndreas Enge <andreas@enge.fr>2023-03-18 10:36:22 +0100
commit483124bc484d65b4036c098a700681656e6b69fb (patch)
tree82abb1736aa1e0f1d91f2ffa660d7f56617dc0db /gnu/packages/patches/libaio-32bit-test.patch
parentf9bff8614be32f9c2c1a54da80eaed1365b49be3 (diff)
downloadguix-483124bc484d65b4036c098a700681656e6b69fb.tar.gz
gnu: libaio: Fix tests on 32 bit systems.
* gnu/packages/patches/libaio-32bit-test.patch: New file.
* gnu/packages/linux.scm (libaio): Add patch.
* gnu/local.mk (dist_patch_DATA): Register patch.
Diffstat (limited to 'gnu/packages/patches/libaio-32bit-test.patch')
-rw-r--r--gnu/packages/patches/libaio-32bit-test.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/patches/libaio-32bit-test.patch b/gnu/packages/patches/libaio-32bit-test.patch
new file mode 100644
index 0000000000..0da8e25c69
--- /dev/null
+++ b/gnu/packages/patches/libaio-32bit-test.patch
@@ -0,0 +1,26 @@
+This fix comes from an upstream pull request, see
+https://pagure.io/libaio/pull-request/22#commit_list
+
+diff --git a/harness/cases/23.t b/harness/cases/23.t
+index cc5a8a1..9bbb05c 100644
+--- a/harness/cases/23.t
++++ b/harness/cases/23.t
+@@ -72,7 +72,7 @@ static void fail_errno(const char *format, ...)
+ static void *thrproc2(void *arg)
+ {
+ 	for (;;) {
+-		off_t offset = 0;
++		off64_t offset = 0;
+ 
+ 		pthread_barrier_wait(&barrier);
+ 		if (exiting)
+@@ -92,7 +92,7 @@ static void *thrproc3(void *arg)
+ {
+ 	for (;;) {
+ 		char c;
+-		off_t offset = 0;
++		off64_t offset = 0;
+ 
+ 		pthread_barrier_wait(&barrier);
+ 		if (exiting)
+