aports/testing/pmdk/10-include.patch
2022-04-16 16:36:44 +00:00

57 lines
1.3 KiB
Diff

Fix includes for alpine
--- a/src/libpmem2/badblocks_ndctl.c
+++ b/src/libpmem2/badblocks_ndctl.c
@@ -16,7 +16,7 @@
#include <sys/sysmacros.h>
#include <fcntl.h>
#include <ndctl/libndctl.h>
-#include <ndctl/libdaxctl.h>
+#include <daxctl/libdaxctl.h>
#include "libpmem2.h"
#include "pmem2_utils.h"
--- a/src/libpmem2/region_namespace_ndctl.c
+++ b/src/libpmem2/region_namespace_ndctl.c
@@ -6,7 +6,7 @@
*/
#include <ndctl/libndctl.h>
-#include <ndctl/libdaxctl.h>
+#include <daxctl/libdaxctl.h>
#include <sys/sysmacros.h>
#include <fcntl.h>
--- a/src/libpmem2/usc_ndctl.c
+++ b/src/libpmem2/usc_ndctl.c
@@ -5,7 +5,7 @@
* usc_ndctl.c -- pmem2 usc function for platforms using ndctl
*/
#include <ndctl/libndctl.h>
-#include <ndctl/libdaxctl.h>
+#include <daxctl/libdaxctl.h>
#include <sys/types.h>
#include <sys/sysmacros.h>
#include <fcntl.h>
--- a/src/tools/daxio/daxio.c
+++ b/src/tools/daxio/daxio.c
@@ -21,7 +21,7 @@
#include <string.h>
#include <ndctl/libndctl.h>
-#include <ndctl/libdaxctl.h>
+#include <daxctl/libdaxctl.h>
#include <libpmem.h>
#include "util.h"
--- a/src/test/tools/ctrld/ctrld.c
+++ b/src/test/tools/ctrld/ctrld.c
@@ -17,6 +17,7 @@
#include <signal.h>
#include <limits.h>
#include <queue.h>
+#include <fcntl.h>
#include <sys/types.h>
#include <sys/file.h>
#include <sys/types.h>