180-openbsd_compat.patch 878 B

1234567891011121314151617181920212223242526
  1. diff -Nur squashfs4.2.orig/squashfs-tools/mksquashfs.c squashfs4.2/squashfs-tools/mksquashfs.c
  2. --- squashfs4.2.orig/squashfs-tools/mksquashfs.c Tue Mar 5 16:20:49 2013
  3. +++ squashfs4.2/squashfs-tools/mksquashfs.c Tue Mar 5 16:25:10 2013
  4. @@ -32,6 +32,9 @@
  5. #include <stdio.h>
  6. #include <stddef.h>
  7. #include <sys/time.h>
  8. +#if defined(__OpenBSD__)
  9. +#include <sys/param.h>
  10. +#endif
  11. #include <sys/types.h>
  12. #include <sys/stat.h>
  13. #include <fcntl.h>
  14. diff -Nur squashfs4.2.orig/squashfs-tools/unsquashfs.h squashfs4.2/squashfs-tools/unsquashfs.h
  15. --- squashfs4.2.orig/squashfs-tools/unsquashfs.h Tue Mar 5 16:20:49 2013
  16. +++ squashfs4.2/squashfs-tools/unsquashfs.h Tue Mar 5 16:25:57 2013
  17. @@ -25,6 +25,9 @@
  18. #define TRUE 1
  19. #define FALSE 0
  20. #include <stdio.h>
  21. +#if defined(__OpenBSD__)
  22. +#include <sys/param.h>
  23. +#endif
  24. #include <sys/types.h>
  25. #include <unistd.h>
  26. #include <stdlib.h>