packages/net/tgt/patches/100-musl-compat.patch
Maxim Storchak 186b29820a tgt: update to 1.0.61
Signed-off-by: Maxim Storchak <m.storchak@gmail.com>
2015-11-08 19:47:50 +02:00

30 lines
571 B
Diff

diff --git a/usr/tgtd.h b/usr/tgtd.h
index d8b2ac1..c6eee54 100644
--- 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
diff --git a/usr/util.h b/usr/util.h
index 0e34c35..3e2e63b 100644
--- 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))