diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-01-08 20:12:39 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-01-09 06:54:08 -0800 |
| commit | 4caa10faa85c1d67c91fc6870ce8956471e74e9d (patch) | |
| tree | 84acf7c3e847e265447ed76e18313e9a6d416940 /meta-networking/recipes-extended/tgt/files | |
| parent | 15abedd8ab5ae20c9ce30bd06c59d18eed2004a9 (diff) | |
| download | meta-openembedded-4caa10faa85c1d67c91fc6870ce8956471e74e9d.tar.gz | |
tgt: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking/recipes-extended/tgt/files')
| -rw-r--r-- | meta-networking/recipes-extended/tgt/files/musl-__wordsize.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-extended/tgt/files/musl-__wordsize.patch b/meta-networking/recipes-extended/tgt/files/musl-__wordsize.patch new file mode 100644 index 0000000000..ac758cc39d --- /dev/null +++ b/meta-networking/recipes-extended/tgt/files/musl-__wordsize.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | The definition of __WORDSIZE is found in <sys/reg.h> | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 5 | |||
| 6 | --- a/usr/iscsi/iscsid.h | ||
| 7 | +++ b/usr/iscsi/iscsid.h | ||
| 8 | @@ -22,6 +22,9 @@ | ||
| 9 | #include <stdint.h> | ||
| 10 | #include <inttypes.h> | ||
| 11 | #include <netdb.h> | ||
| 12 | +#if !defined(__GLIBC__) | ||
| 13 | +#include <sys/reg.h> | ||
| 14 | +#endif | ||
| 15 | |||
| 16 | #include "transport.h" | ||
| 17 | #include "list.h" | ||
| 18 | --- a/usr/tgtd.h | ||
| 19 | +++ b/usr/tgtd.h | ||
| 20 | @@ -1,6 +1,9 @@ | ||
| 21 | #ifndef __TARGET_DAEMON_H | ||
| 22 | #define __TARGET_DAEMON_H | ||
| 23 | |||
| 24 | +#if !defined(__GLIBC__) | ||
| 25 | +#include <sys/reg.h> | ||
| 26 | +#endif | ||
| 27 | #include "log.h" | ||
| 28 | #include "scsi_cmnd.h" | ||
| 29 | #include "tgtadm_error.h" | ||
| 30 | --- a/usr/util.h | ||
| 31 | +++ b/usr/util.h | ||
| 32 | @@ -19,6 +19,9 @@ | ||
| 33 | #include <linux/fs.h> | ||
| 34 | #include <sys/types.h> | ||
| 35 | #include <sys/stat.h> | ||
| 36 | +#if !defined(__GLIBC__) | ||
| 37 | +#include <sys/reg.h> | ||
| 38 | +#endif | ||
| 39 | |||
| 40 | #include "be_byteshift.h" | ||
| 41 | |||
