summaryrefslogtreecommitdiff
path: root/pkg/strace/patch/0006-Avoid-empty-struct-definition.patch
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-07-05 20:54:10 -0700
committerMichael Forney <mforney@mforney.org>2019-07-07 22:48:33 -0700
commit3a70a6da53015c52ae81e99d284409edd97a4117 (patch)
tree217e63ea191512f87a8cbd2b1b945b3ac53024f3 /pkg/strace/patch/0006-Avoid-empty-struct-definition.patch
parent87cf7a326fb2ab7cd780ebd9d14f21ab7fba7ff4 (diff)
strace: Fix a few portability issues
Diffstat (limited to 'pkg/strace/patch/0006-Avoid-empty-struct-definition.patch')
-rw-r--r--pkg/strace/patch/0006-Avoid-empty-struct-definition.patch38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkg/strace/patch/0006-Avoid-empty-struct-definition.patch b/pkg/strace/patch/0006-Avoid-empty-struct-definition.patch
new file mode 100644
index 00000000..b09b524e
--- /dev/null
+++ b/pkg/strace/patch/0006-Avoid-empty-struct-definition.patch
@@ -0,0 +1,38 @@
+From 9373bbf0bc3d17265f165845eb16c85843e92cf6 Mon Sep 17 00:00:00 2001
+From: Michael Forney <mforney@mforney.org>
+Date: Sun, 7 Jul 2019 21:50:31 -0700
+Subject: [PATCH] Avoid empty struct definition
+
+---
+ fetch_struct_stat64.c | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+diff --git a/fetch_struct_stat64.c b/fetch_struct_stat64.c
+index 8b445ba3..5b7641a1 100644
+--- a/fetch_struct_stat64.c
++++ b/fetch_struct_stat64.c
+@@ -32,12 +32,6 @@
+ # endif /* HAVE_MX32_STRUCT_STAT64 */
+ #endif /* MPERS_IS_m32 || MPERS_IS_mx32 */
+
+-#ifndef HAVE_STRUCT_STAT64
+-struct stat64 {};
+-#endif
+-
+-typedef struct stat64 struct_stat64;
+-
+ #include MPERS_DEFS
+
+ #include "stat.h"
+@@ -55,7 +49,7 @@ MPERS_PRINTER_DECL(bool, fetch_struct_stat64,
+ struct strace_stat *const dst)
+ {
+ #ifdef HAVE_STRUCT_STAT64
+- struct_stat64 buf;
++ struct stat64 buf;
+ if (umove_or_printaddr(tcp, addr, &buf))
+ return false;
+
+--
+2.22.0
+