003-openbsd-compat.patch 789 B

123456789101112131415161718192021222324
  1. diff -Nur e2fsprogs-1.42.7.orig/lib/blkid/getsize.c e2fsprogs-1.42.7/lib/blkid/getsize.c
  2. --- e2fsprogs-1.42.7.orig/lib/blkid/getsize.c Fri Nov 30 03:40:18 2012
  3. +++ e2fsprogs-1.42.7/lib/blkid/getsize.c Thu Mar 7 14:21:59 2013
  4. @@ -26,6 +26,9 @@
  5. #include <fcntl.h>
  6. #ifdef HAVE_SYS_IOCTL_H
  7. #include <sys/ioctl.h>
  8. +#ifdef __OpenBSD__
  9. +#include <sys/dkio.h>
  10. +#endif
  11. #endif
  12. #ifdef HAVE_LINUX_FD_H
  13. #include <linux/fd.h>
  14. diff -Nur e2fsprogs-1.42.7.orig/lib/quota/mkquota.c e2fsprogs-1.42.7/lib/quota/mkquota.c
  15. --- e2fsprogs-1.42.7.orig/lib/quota/mkquota.c Wed Jan 2 01:47:20 2013
  16. +++ e2fsprogs-1.42.7/lib/quota/mkquota.c Thu Mar 7 14:21:59 2013
  17. @@ -8,6 +8,7 @@
  18. #include <sys/stat.h>
  19. #include <unistd.h>
  20. #include <errno.h>
  21. +#include <stdint.h>
  22. #include <string.h>
  23. #include <fcntl.h>