diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2013-12-18 22:01:02 +0100 |
---|---|---|
committer | Jesper Dangaard Brouer <brouer@redhat.com> | 2013-12-18 22:01:02 +0100 |
commit | 209082307bd1595f68dbd328bacf8aec7536c441 (patch) | |
tree | 6d512c20594fcf11dfd5ce0d7dce90f1d486edd4 | |
parent | 7d1ba2b499fcd904bdea7a965688ab7ffd3e390e (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.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |