opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0006-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 ---
      7  src/fetch_struct_stat64.c | 8 +-------
      8  1 file changed, 1 insertion(+), 7 deletions(-)
      9 
     10 diff --git a/src/fetch_struct_stat64.c b/src/fetch_struct_stat64.c
     11 index b5125d420..b45a48da5 100644
     12 --- a/src/fetch_struct_stat64.c
     13 +++ b/src/fetch_struct_stat64.c
     14 @@ -32,12 +32,6 @@
     15  # endif /* HAVE_MX32_STRUCT_STAT64 */
     16  #endif /* MPERS_IS_m32 || MPERS_IS_mx32 */
     17  
     18 -#ifndef HAVE_STRUCT_STAT64
     19 -struct stat64 {};
     20 -#endif
     21 -
     22 -typedef struct stat64 struct_stat64;
     23 -
     24  #include MPERS_DEFS
     25  
     26  #include "stat.h"
     27 @@ -55,7 +49,7 @@ MPERS_PRINTER_DECL(bool, fetch_struct_stat64,
     28  		   struct strace_stat *const dst)
     29  {
     30  #ifdef HAVE_STRUCT_STAT64
     31 -	struct_stat64 buf;
     32 +	struct stat64 buf;
     33  	if (umove_or_printaddr(tcp, addr, &buf))
     34  		return false;
     35  
     36 -- 
     37 2.34.1
     38