blob: ca4fc3ab160eef9d57e0b5b3666aa1e690323d36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From f94d470d85911142bff6cb3821079f3ff321edfc 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
---
src/fetch_struct_stat64.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/src/fetch_struct_stat64.c b/src/fetch_struct_stat64.c
index b5125d420..b45a48da5 100644
--- a/src/fetch_struct_stat64.c
+++ b/src/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.34.1
|