Browse Source

cpio: fix gcc 15.x issues

Waldemar Brodkorb 3 months ago
parent
commit
1911bccde6
2 changed files with 28 additions and 0 deletions
  1. 13 0
      package/cpio/patches/patch-src_extern_h
  2. 15 0
      package/cpio/patches/patch-src_global_c

+ 13 - 0
package/cpio/patches/patch-src_extern_h

@@ -0,0 +1,13 @@
+--- cpio-2.15.orig/src/extern.h	2024-01-14 12:42:18.000000000 +0100
++++ cpio-2.15/src/extern.h	2026-05-17 20:01:27.138191106 +0200
+@@ -97,8 +97,8 @@ extern char input_is_special;
+ extern char output_is_special;
+ extern char input_is_seekable;
+ extern char output_is_seekable;
+-extern int (*xstat) ();
+-extern void (*copy_function) ();
++extern int (*xstat) (const char *, struct stat *);
++extern void (*copy_function) (void);
+ extern char *change_directory_option;
+ 
+ #define STRINGIFY_BIGINT(i, b) umaxtostr (i, b)

+ 15 - 0
package/cpio/patches/patch-src_global_c

@@ -0,0 +1,15 @@
+--- cpio-2.15.orig/src/global.c	2024-01-14 12:42:18.000000000 +0100
++++ cpio-2.15/src/global.c	2026-05-17 20:01:27.138191106 +0200
+@@ -185,10 +185,10 @@ bool to_stdout_option = false;
+ 
+ /* A pointer to either lstat or stat, depending on whether
+    dereferencing of symlinks is done for input files.  */
+-int (*xstat) ();
++int (*xstat) (const char *, struct stat *);
+ 
+ /* Which copy operation to perform. (-i, -o, -p) */
+-void (*copy_function) () = 0;
++void (*copy_function) (void) = 0;
+ 
+ char *change_directory_option;
+