lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

100-musl-compat.patch (571B)


      1 diff --git a/usr/tgtd.h b/usr/tgtd.h
      2 index d8b2ac1..c6eee54 100644
      3 --- a/usr/tgtd.h
      4 +++ b/usr/tgtd.h
      5 @@ -9,6 +9,10 @@
      6  #include <systemd/sd-daemon.h>
      7  #endif
      8  
      9 +#ifndef __WORDSIZE
     10 +#include <sys/reg.h>
     11 +#endif
     12 +
     13  struct concat_buf;
     14  
     15  #define NR_SCSI_OPCODES		256
     16 diff --git a/usr/util.h b/usr/util.h
     17 index 0e34c35..3e2e63b 100644
     18 --- a/usr/util.h
     19 +++ b/usr/util.h
     20 @@ -16,6 +16,10 @@
     21  #include <limits.h>
     22  #include <linux/types.h>
     23  
     24 +#ifndef __WORDSIZE
     25 +#include <sys/reg.h>
     26 +#endif
     27 +
     28  #include "be_byteshift.h"
     29  
     30  #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))