lede-packages-rs

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

100-musl-compat.patch (974B)


      1 --- a/prog/dump/isadump.c
      2 +++ b/prog/dump/isadump.c
      3 @@ -38,7 +38,7 @@
      4  
      5  
      6  /* To keep glibc2 happy */
      7 -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
      8 +#if !defined(__UCLIBC__)
      9  #include <sys/io.h>
     10  #else
     11  #include <asm/io.h>
     12 --- a/prog/dump/isaset.c
     13 +++ b/prog/dump/isaset.c
     14 @@ -34,7 +34,7 @@
     15  
     16  
     17  /* To keep glibc2 happy */
     18 -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
     19 +#if !defined(__UCLIBC__)
     20  #include <sys/io.h>
     21  #else
     22  #include <asm/io.h>
     23 --- a/prog/dump/superio.c
     24 +++ b/prog/dump/superio.c
     25 @@ -21,7 +21,7 @@
     26  
     27  #include <stdlib.h>
     28  
     29 -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
     30 +#if !defined(__UCLIBC__)
     31  #include <sys/io.h>
     32  #else
     33  #include <asm/io.h>
     34 --- a/prog/dump/util.c
     35 +++ b/prog/dump/util.c
     36 @@ -12,7 +12,7 @@
     37  #include "util.h"
     38  
     39  /* To keep glibc2 happy */
     40 -#if defined(__GLIBC__) && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 0
     41 +#if !defined(__UCLIBC__)
     42  #include <sys/io.h>
     43  #else
     44  #include <asm/io.h>