Commit 4a10d78d authored by Klaas Freitag's avatar Klaas Freitag

Use ifru_mtu instead of ifru_ivalue for compatibility with 2.0 kernel

headers.
parent 49d6a000
...@@ -68,14 +68,15 @@ extern int for_all_interfaces(int (*)(struct interface *, void *), void *); ...@@ -68,14 +68,15 @@ extern int for_all_interfaces(int (*)(struct interface *, void *), void *);
extern struct interface *lookup_interface(char *name); extern struct interface *lookup_interface(char *name);
extern int if_readlist(void); extern int if_readlist(void);
/* Define for poor glibc2.0 users, the feature check is done at runtime */ /* Defines for poor glibc2.0 users, the feature check is done at runtime */
#if !defined(SIOCSIFTXQLEN) #if !defined(SIOCSIFTXQLEN)
#define SIOCSIFTXQLEN 0x8943 #define SIOCSIFTXQLEN 0x8943
#define SIOCGIFTXQLEN 0x8942 #define SIOCGIFTXQLEN 0x8942
#endif #endif
#if !defined(ifr_qlen) #if !defined(ifr_qlen)
#define ifr_qlen ifr_ifru.ifru_ivalue /* Actually it is ifru_ivalue, but that is not present in 2.0 kernel headers */
#define ifr_qlen ifr_ifru.ifru_mtu
#endif #endif
#define HAVE_TXQUEUELEN #define HAVE_TXQUEUELEN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment