logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0004-Avoid-empty-struct-definition.patch (947B)


  1. From f94d470d85911142bff6cb3821079f3ff321edfc Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sun, 7 Jul 2019 21:50:31 -0700
  4. Subject: [PATCH] Avoid empty struct definition
  5. ---
  6. src/fetch_struct_stat64.c | 8 +-------
  7. 1 file changed, 1 insertion(+), 7 deletions(-)
  8. diff --git a/src/fetch_struct_stat64.c b/src/fetch_struct_stat64.c
  9. index b5125d420..b45a48da5 100644
  10. --- a/src/fetch_struct_stat64.c
  11. +++ b/src/fetch_struct_stat64.c
  12. @@ -32,12 +32,6 @@
  13. # endif /* HAVE_MX32_STRUCT_STAT64 */
  14. #endif /* MPERS_IS_m32 || MPERS_IS_mx32 */
  15. -#ifndef HAVE_STRUCT_STAT64
  16. -struct stat64 {};
  17. -#endif
  18. -
  19. -typedef struct stat64 struct_stat64;
  20. -
  21. #include MPERS_DEFS
  22. #include "stat.h"
  23. @@ -55,7 +49,7 @@ MPERS_PRINTER_DECL(bool, fetch_struct_stat64,
  24. struct strace_stat *const dst)
  25. {
  26. #ifdef HAVE_STRUCT_STAT64
  27. - struct_stat64 buf;
  28. + struct stat64 buf;
  29. if (umove_or_printaddr(tcp, addr, &buf))
  30. return false;
  31. --
  32. 2.34.1