diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-30 17:19:56 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-09-30 17:19:56 +0000 |
commit | b5e4091e9566c9db3208d6f56ec49f42a645a8cf (patch) | |
tree | 1be6e7a2c107399030e31d109c1b73ae338f3a66 /main/py-ethtool/fix-includes-and-types.patch | |
parent | e21031c82b72f124cf23a21404bfb531378ed8a8 (diff) | |
download | aports-b5e4091e9566c9db3208d6f56ec49f42a645a8cf.tar.bz2 aports-b5e4091e9566c9db3208d6f56ec49f42a645a8cf.tar.xz |
main/py-ethtool: fix musl build
Diffstat (limited to 'main/py-ethtool/fix-includes-and-types.patch')
-rw-r--r-- | main/py-ethtool/fix-includes-and-types.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/main/py-ethtool/fix-includes-and-types.patch b/main/py-ethtool/fix-includes-and-types.patch new file mode 100644 index 0000000000..da655f7c67 --- /dev/null +++ b/main/py-ethtool/fix-includes-and-types.patch @@ -0,0 +1,25 @@ +--- python-ethtool-0.7.orig/python-ethtool/etherinfo.c ++++ python-ethtool-0.7/python-ethtool/etherinfo.c +@@ -16,7 +16,6 @@ + */ + + #include <Python.h> +-#include <bits/sockaddr.h> + #include <stdio.h> + #include <string.h> + #include <sys/types.h> +--- python-ethtool-0.7.orig/python-ethtool/ethtool.c ++++ python-ethtool-0.7/python-ethtool/ethtool.c +@@ -41,9 +41,9 @@ + #endif + + typedef unsigned long long u64; +-typedef __uint32_t u32; +-typedef __uint16_t u16; +-typedef __uint8_t u8; ++typedef uint32_t u32; ++typedef uint16_t u16; ++typedef uint8_t u8; + + #include "ethtool-copy.h" + #include <linux/sockios.h> /* for SIOCETHTOOL */ |