diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-14 08:04:10 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-01-14 08:04:40 +0000 |
commit | 28fe8399aded0c62559f7913c1d5c5107010401b (patch) | |
tree | e738f152e50d98e074863eabbd7fa8957161f484 /main/ethtool/stdint.patch | |
parent | 8d064b0b0311341e383dead00a400ad92b2f3044 (diff) | |
download | aports-28fe8399aded0c62559f7913c1d5c5107010401b.tar.bz2 aports-28fe8399aded0c62559f7913c1d5c5107010401b.tar.xz |
main/ethtool: build fix for musl
use stdint's uint types instead of linux internals
Diffstat (limited to 'main/ethtool/stdint.patch')
-rw-r--r-- | main/ethtool/stdint.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/ethtool/stdint.patch b/main/ethtool/stdint.patch new file mode 100644 index 0000000000..cf9ae83c2b --- /dev/null +++ b/main/ethtool/stdint.patch @@ -0,0 +1,25 @@ +--- ./internal.h.orig ++++ ./internal.h +@@ -7,6 +7,7 @@ + #include "ethtool-config.h" + #endif + #include <stdio.h> ++#include <stdint.h> + #include <stdlib.h> + #include <string.h> + #include <sys/types.h> +@@ -23,10 +24,10 @@ + #endif + + typedef unsigned long long u64; +-typedef __uint32_t u32; +-typedef __uint16_t u16; +-typedef __uint8_t u8; +-typedef __int32_t s32; ++typedef uint32_t u32; ++typedef uint16_t u16; ++typedef uint8_t u8; ++typedef int32_t s32; + + #include "ethtool-copy.h" + #include "net_tstamp-copy.h" |