Skip to content

Commit

Permalink
linux: Only include linux/if.h if libc does not define IFF_DORMANT
Browse files Browse the repository at this point in the history
Hopefully fixes #373.
  • Loading branch information
rsmarples committed Oct 1, 2024
1 parent 47e2a36 commit 80c010a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/if-linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@
#include <linux/if_arp.h>
#endif

#ifndef IFF_DORMANT
/* Inlcude this *after* net/if.h so we get IFF_DORMANT */
#include <linux/if.h>
#endif

#include <dirent.h>
#include <errno.h>
Expand Down

0 comments on commit 80c010a

Please sign in to comment.