packages/net/tgt/patches/100-musl-compat.patch
Rosen Penev 1ce197c73f tgt: Update to 1.0.74
Remove KERNEL_AIO dependency to avoid recursive dependency with libaio in
a future commit.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2018-11-05 20:31:49 -08:00

26 lines
437 B
Diff

--- a/usr/tgtd.h
+++ b/usr/tgtd.h
@@ -9,6 +9,10 @@
#include <systemd/sd-daemon.h>
#endif
+#ifndef __WORDSIZE
+#include <sys/reg.h>
+#endif
+
struct concat_buf;
#define NR_SCSI_OPCODES 256
--- a/usr/util.h
+++ b/usr/util.h
@@ -16,6 +16,10 @@
#include <limits.h>
#include <linux/types.h>
+#ifndef __WORDSIZE
+#include <sys/reg.h>
+#endif
+
#include "be_byteshift.h"
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))