diff options
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 000000000..da655f7c6 --- /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 */ |