]> git.puffer.fish Git - mirror/frr.git/commit
zebra/if_netlink: compile under musl-libc 1861/head
authorArthur Jones <arthur.jones@riverbed.com>
Fri, 9 Mar 2018 23:08:24 +0000 (15:08 -0800)
committerArthur Jones <arthur.jones@riverbed.com>
Fri, 9 Mar 2018 23:20:14 +0000 (15:20 -0800)
commitba85366ad34ae0497df8f4773aae81a567e10256
tree961e3a94b9941d07ffa95b47b3ec1a280b110239
parent58e7db106d5907cb129fcc316f02ce0bf34e3885
zebra/if_netlink: compile under musl-libc

musl-libc is a lightweight libc used by alpine linux:

https://www.musl-libc.org/

AFAICT, this is the only change to the source needed to get
basic frr support compiling on musl.

Two changes in one patch, get ethhdr from netinet/if_ether.h
and replace the only __caddr_t I could find in the source base
with caddr_t.

Testing done:

Compiled apk packages using a docker environment (patches
coming soon) also compiled redhat and debian using a similar
docker environment (RFC patches for those changes are queued
up too)...

Issue: https://github.com/FRRouting/frr/issues/1859
Signed-off-by: Arthur Jones <arthur.jones@riverbed.com>
zebra/if_netlink.c