aboutsummaryrefslogtreecommitdiff
path: root/net/tgt/patches/100-musl-compat.patch
blob: 8c6f5913807f309613cf63b8d4c620565d197063 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- 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
@@ -20,6 +20,10 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#ifndef __WORDSIZE
+#include <sys/reg.h>
+#endif
+
 #include "be_byteshift.h"
 
 #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))