0001-fix-compilation-under-musl.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. From 89c7fc15e064dd407e6d5ccefe78985b86b8a036 Mon Sep 17 00:00:00 2001
  2. From: Brendan Heading <brendanheading@gmail.com>
  3. Date: Tue, 1 Sep 2015 12:26:36 +0100
  4. Subject: [PATCH 1/1] fix compilation under musl
  5. Patch borrowed from Void Linux :
  6. https://github.com/voidlinux/void-packages/blob/master/srcpkgs/dmraid/patches/25_musl-libc.patch
  7. Upstream package appears dormant, no mailing list and no
  8. maintainence releases since Nov 2010.
  9. Upstream-Status: dormant
  10. Signed-off-by: Brendan Heading <brendanheading@gmail.com>
  11. ---
  12. 1.0.0.rc16-3/dmraid/include/dmraid/misc.h | 1 +
  13. 1.0.0.rc16-3/dmraid/lib/device/scan.c | 1 +
  14. 2 files changed, 2 insertions(+)
  15. diff --git a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
  16. index 247a68e..1b1dfdf 100644
  17. --- a/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
  18. +++ b/1.0.0.rc16-3/dmraid/include/dmraid/misc.h
  19. @@ -10,6 +10,7 @@
  20. #ifndef _MISC_H_
  21. #define _MISC_H_
  22. +#include <fcntl.h>
  23. #define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0);
  24. diff --git a/1.0.0.rc16-3/dmraid/lib/device/scan.c b/1.0.0.rc16-3/dmraid/lib/device/scan.c
  25. index a040d53..6897146 100644
  26. --- a/1.0.0.rc16-3/dmraid/lib/device/scan.c
  27. +++ b/1.0.0.rc16-3/dmraid/lib/device/scan.c
  28. @@ -10,6 +10,7 @@
  29. # include <dirent.h>
  30. # include <paths.h>
  31. #else
  32. +# include <paths.h>
  33. # include <dirent.h>
  34. # include <mntent.h>
  35. #endif
  36. --
  37. 2.4.3