2
0

100-portability.patch 833 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/squashfs-tools/mksquashfs.c
  2. +++ b/squashfs-tools/mksquashfs.c
  3. @@ -60,6 +60,10 @@
  4. #include <sys/sysinfo.h>
  5. #endif
  6. +#ifndef FNM_EXTMATCH
  7. +#define FNM_EXTMATCH 0
  8. +#endif
  9. +
  10. #ifdef SQUASHFS_TRACE
  11. #define TRACE(s, args...) \
  12. do { \
  13. --- a/squashfs-tools/unsquashfs.h
  14. +++ b/squashfs-tools/unsquashfs.h
  15. @@ -49,8 +49,14 @@
  16. #define __BYTE_ORDER BYTE_ORDER
  17. #define __BIG_ENDIAN BIG_ENDIAN
  18. #define __LITTLE_ENDIAN LITTLE_ENDIAN
  19. +#include <sys/sysctl.h>
  20. #else
  21. #include <endian.h>
  22. +#include <sys/sysinfo.h>
  23. +#endif
  24. +
  25. +#ifndef FNM_EXTMATCH
  26. +#define FNM_EXTMATCH 0
  27. #endif
  28. #include "squashfs_fs.h"
  29. --- a/squashfs-tools/unsquashfs.c
  30. +++ b/squashfs-tools/unsquashfs.c
  31. @@ -29,7 +29,6 @@
  32. #include "compressor.h"
  33. #include "xattr.h"
  34. -#include <sys/sysinfo.h>
  35. #include <sys/types.h>
  36. struct cache *fragment_cache, *data_cache;