openwrt-packages/net/tgt/patches/100-musl-compat.patch

27 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
@@ -21,6 +21,10 @@
#include <sys/stat.h>
#include <sys/types.h>
+#ifndef __WORDSIZE
+#include <sys/reg.h>
+#endif
+
#include "be_byteshift.h"
#define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))