Skip to content

Commit b519f3e

Browse files
committed
Do not inlcude net/if.h if IFF_* is already defined
This fixes the build on Travis CI
1 parent 998f488 commit b519f3e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python-ethtool/ethtool.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@
2828
#include <sys/types.h>
2929
#include <ifaddrs.h>
3030
#include <netlink/route/addr.h>
31+
#if !defined IFF_UP
3132
#include <net/if.h>
33+
#endif
3234

3335
#include "etherinfo_struct.h"
3436
#include "etherinfo_obj.h"

0 commit comments

Comments
 (0)