Skip to content

Commit

Permalink
Fix uclibc build issue
Browse files Browse the repository at this point in the history
This patch fixes the following compilation error raised by the bump to
version 1.13.1 in Buildroot [1] using uclibc as the C library for the
cross-compilation toolchain:

net.c: In function 'babel_send':
net.c:199:27: error: 'IPV6_DONTFRAG' undeclared (first use in this function)
  199 |         cmsg->cmsg_type = IPV6_DONTFRAG;;

[1] https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]/
Signed-off-by: Dario Binacchi <[email protected]>
  • Loading branch information
passgat committed Sep 23, 2024
1 parent 130366f commit f8e5fbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions net.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ THE SOFTWARE.
#include <arpa/inet.h>
#include <errno.h>

#if defined(__UCLIBC__)
#include <linux/in6.h>
#endif

#include "babeld.h"
#include "util.h"
#include "net.h"
Expand Down

0 comments on commit f8e5fbb

Please sign in to comment.