bfdd: Fix compilation with uClibc-ng

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2019-12-11 19:54:51 -08:00
parent ad4acb5531
commit 04b1e7f7cc
2 changed files with 16 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
diff --git a/bfd_packet.c b/bfd_packet.c
index e8f99f9..2c9fa91 100644
--- a/bfd_packet.c
+++ b/bfd_packet.c
@@ -29,6 +29,8 @@
#define _UAPI_IPV6_H
#endif /* _UAPI_IPV6_H */
+#define _GNU_SOURCE
+
#include <linux/filter.h>
#include <linux/if_ether.h>
#include <linux/if_packet.h>