mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
sandbox: eth-raw: fix building with musl library
The definition of struct udphdr in include netinet/udp.h in the musl library differs from the definition in the glibc library. To use the same definition with musl the symbol _GNU_SOURCE has to be defined. Reported-by: Milan P. Stanić <mps@arvanta.net> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Tested-by: Milan P. Stanić <mps@arvanta.net>
This commit is contained in:
parent
ce51884f51
commit
8e72374feb
1 changed files with 2 additions and 0 deletions
|
@ -4,6 +4,8 @@
|
|||
* Copyright (c) 2015-2018 Joe Hershberger <joe.hershberger@ni.com>
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
|
||||
#include <asm/eth-raw-os.h>
|
||||
#include <errno.h>
|
||||
#include <fcntl.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue