From 209082307bd1595f68dbd328bacf8aec7536c441 Mon Sep 17 00:00:00 2001 From: Jesper Dangaard Brouer Date: Wed, 18 Dec 2013 22:01:02 +0100 Subject: 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 --- link.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/link.h b/link.h index 67ec433..f201e8c 100644 --- a/link.h +++ b/link.h @@ -6,6 +6,10 @@ #include #include +#ifndef SPEED_UNKNOWN +#define SPEED_UNKNOWN -1 +#endif + #include "built_in.h" extern int wireless_sigqual(const char *ifname, struct iw_statistics *stats); -- cgit v1.2.3-54-g00ecf