22 lines
591 B
Diff
22 lines
591 B
Diff
https://bugs.gentoo.org/717430
|
|
https://git.alpinelinux.org/aports/plain/main/dmraid/006-musl-libc.patch
|
|
--- a/include/dmraid/misc.h
|
|
+++ b/include/dmraid/misc.h
|
|
@@ -10,6 +10,7 @@
|
|
|
|
#ifndef _MISC_H_
|
|
#define _MISC_H_
|
|
+#include <fcntl.h>
|
|
|
|
#define DM_ASSERT(__cond) do { if (!(__cond)) { printf("ASSERT file:%s line:%d fuction:%s cond: %s\n", __FILE__, __LINE__, __FUNCTION__, #__cond); } } while(0);
|
|
|
|
--- a/lib/device/scan.c
|
|
+++ b/lib/device/scan.c
|
|
@@ -10,6 +10,7 @@
|
|
# include <dirent.h>
|
|
# include <paths.h>
|
|
#else
|
|
+# include <paths.h>
|
|
# include <dirent.h>
|
|
# include <mntent.h>
|
|
#endif
|