Fix compile on F23
This commit is contained in:
parent
78a69f000a
commit
b28068d718
24
0001-Include-net-if.h-for-IFF_-macros.patch
Normal file
24
0001-Include-net-if.h-for-IFF_-macros.patch
Normal file
@ -0,0 +1,24 @@
|
||||
From a43f582918d3295b7cdef9e056bf5b1c4eb2ef80 Mon Sep 17 00:00:00 2001
|
||||
From: Yaakov Selkowitz <yselkowi@redhat.com>
|
||||
Date: Mon, 22 Jun 2015 05:18:44 -0500
|
||||
Subject: [PATCH] Include net/if.h for IFF_* macros
|
||||
|
||||
---
|
||||
python-ethtool/ethtool.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
|
||||
index 0f9cdbb..5415ec6 100644
|
||||
--- a/python-ethtool/ethtool.c
|
||||
+++ b/python-ethtool/ethtool.c
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <ifaddrs.h>
|
||||
#include <netlink/route/addr.h>
|
||||
+#include <net/if.h>
|
||||
|
||||
#include "etherinfo_struct.h"
|
||||
#include "etherinfo_obj.h"
|
||||
--
|
||||
2.1.0
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
Summary: Ethernet settings python bindings
|
||||
Name: python-ethtool
|
||||
Version: 0.11
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
URL: https://fedorahosted.org/python-ethtool/
|
||||
Source: https://fedorahosted.org/releases/p/y/python-ethtool/python-ethtool-%{version}.tar.bz2
|
||||
License: GPLv2
|
||||
@ -12,6 +12,8 @@ Group: System Environment/Libraries
|
||||
BuildRequires: python-devel libnl3-devel asciidoc
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Patch1: 0001-Include-net-if.h-for-IFF_-macros.patch
|
||||
|
||||
%description
|
||||
Python bindings for the ethtool kernel interface, that allows querying and
|
||||
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
|
||||
@ -19,6 +21,7 @@ PCI locations.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
@ -49,6 +52,9 @@ rm -rf %{buildroot}
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Jun 22 2015 Yaakov Selkowitz <yselkowi@redhat.com> - 0.11-5
|
||||
- Fix compile on F23
|
||||
|
||||
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user