summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-05-28 16:46:40 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2009-05-28 16:46:40 -0300
commit9c6cd9c2e8a2269a9c9ef1c78af02501e5fd46d3 (patch)
tree2aea47788315462bde9a3614f6c68e2adde28d45
parent2db1ec98f472c9829d8a697f2e1254926c319abf (diff)
downloadpython-ethtool-9c6cd9c2e8a2269a9c9ef1c78af02501e5fd46d3.tar.gz
python-ethtool-9c6cd9c2e8a2269a9c9ef1c78af02501e5fd46d3.tar.xz
python-ethtool-9c6cd9c2e8a2269a9c9ef1c78af02501e5fd46d3.zip
ethtool: Older kernels don't have IFF_DYNAMIC
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r--python-ethtool/ethtool.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index f9788ac..a8c0366 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -26,6 +26,10 @@
#include <sys/ioctl.h>
#include <sys/types.h>
+#ifndef IFF_DYNAMIC
+#define IFF_DYNAMIC 0x8000 /* dialup device with changing addresses*/
+#endif
+
typedef unsigned long long u64;
typedef __uint32_t u32;
typedef __uint16_t u16;