]> git.puffer.fish Git - mirror/frr.git/commit
pceplib: add missing endian.h and config.h 8421/head
authorDavid Lamparter <equinox@diac24.net>
Fri, 9 Apr 2021 18:38:56 +0000 (20:38 +0200)
committerDavid Lamparter <equinox@diac24.net>
Fri, 9 Apr 2021 18:41:57 +0000 (20:41 +0200)
commit0490ce41c133f9a801f36668dd58b326ec72a7aa
tree51c85c94a7b7536e16dcb93bb3ca5ad14d4ffaff
parent636aad94735aff8aeec911bca4c32f4e5e48d77c
pceplib: add missing endian.h and config.h

endian.h supplies be*toh() and htobe*() functions.  This fixes the build
on musl libc.  On other systems it seems endian.h comes in transitively
from some other header.

(Also, all .c files should have config.h or zebra.h as the first
include, even if it works without that it's b0rked and only works due to
luck.)

Tested-by: Lucian Cristian <lucian.cristian@gmail.com>
Signed-off-by: David Lamparter <equinox@diac24.net>
pceplib/pcep_msg_tlvs_encoding.c
pceplib/test/pcep_msg_tlvs_test.c