15
0

Accepting request 363725 from home:olh:branches:devel:languages:python

- add python-ethtool.patch to fix build

OBS-URL: https://build.opensuse.org/request/show/363725
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ethtool?expand=0&rev=2
This commit is contained in:
2016-03-02 09:58:11 +00:00
committed by Git OBS Bridge
parent 2b334ca7a9
commit f7e8f0918b
3 changed files with 37 additions and 13 deletions

17
python-ethtool.patch Normal file
View File

@@ -0,0 +1,17 @@
---
python-ethtool/ethtool.c | 2 ++
1 file changed, 2 insertions(+)
Index: python-ethtool-0.11/python-ethtool/ethtool.c
===================================================================
--- python-ethtool-0.11.orig/python-ethtool/ethtool.c
+++ python-ethtool-0.11/python-ethtool/ethtool.c
@@ -26,6 +26,8 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <ifaddrs.h>
+/* This should have been net/if.h, but libnl3 got it wrong */
+#include <linux/if.h>
#include <netlink/route/addr.h>
#include "etherinfo_struct.h"