aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-ethtool/fix-includes-and-types.patch
blob: da655f7c678b92f95c521334d88cc9b74fea6ea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 */