cpio-c23.patch 756 B

1234567891011121314151617181920212223
  1. --- a/src/extern.h
  2. +++ b/src/extern.h
  3. @@ -97,7 +97,8 @@ extern char input_is_special;
  4. extern char output_is_special;
  5. extern char input_is_seekable;
  6. extern char output_is_seekable;
  7. -extern int (*xstat) ();
  8. +//void not good enough
  9. +extern int (*xstat) (const char * restrict, struct stat * restrict);
  10. extern void (*copy_function) ();
  11. extern char *change_directory_option;
  12. --- a/src/global.c
  13. +++ b/src/global.c
  14. @@ -185,7 +185,7 @@ bool to_stdout_option = false;
  15. /* A pointer to either lstat or stat, depending on whether
  16. dereferencing of symlinks is done for input files. */
  17. -int (*xstat) ();
  18. +int (*xstat) (const char * restrict, struct stat * restrict);
  19. /* Which copy operation to perform. (-i, -o, -p) */
  20. void (*copy_function) () = 0;