summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <brouer@redhat.com>2013-12-18 22:01:02 +0100
committerJesper Dangaard Brouer <brouer@redhat.com>2013-12-18 22:01:02 +0100
commit209082307bd1595f68dbd328bacf8aec7536c441 (patch)
tree6d512c20594fcf11dfd5ce0d7dce90f1d486edd4
parent7d1ba2b499fcd904bdea7a965688ab7ffd3e390e (diff)
debian: define SPEED_UNKNOWN if missing in linux/ethtool.h
Debian's version of linux/ethtool.h seems to be outdated and does not contain define SPEED_UNKNOWN, fix this by a manual define. Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
-rw-r--r--link.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/link.h b/link.h
index 67ec433..f201e8c 100644
--- a/link.h
+++ b/link.h
@@ -6,6 +6,10 @@
#include <linux/ethtool.h>
#include <linux/wireless.h>
+#ifndef SPEED_UNKNOWN
+#define SPEED_UNKNOWN -1
+#endif
+
#include "built_in.h"
extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats);