aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-ethtool/fix-includes-and-types.patch
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2015-11-10 07:55:24 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2015-11-10 07:56:41 +0000
commit5622ee34cbe17d63d4bccc613011fafcf9f24fab (patch)
tree556c70241a86b2b17869957eec5ba30d737236b2 /community/py-ethtool/fix-includes-and-types.patch
parent5293bf889543fa940029b17889cca569c4b93b42 (diff)
downloadaports-5622ee34cbe17d63d4bccc613011fafcf9f24fab.tar.bz2
aports-5622ee34cbe17d63d4bccc613011fafcf9f24fab.tar.xz
community/py-ethtool: moved from main
Diffstat (limited to 'community/py-ethtool/fix-includes-and-types.patch')
-rw-r--r--community/py-ethtool/fix-includes-and-types.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/py-ethtool/fix-includes-and-types.patch b/community/py-ethtool/fix-includes-and-types.patch
new file mode 100644
index 0000000000..da655f7c67
--- /dev/null
+++ b/community/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 */