diff options
author | Mark Stapp <mjs@voltanet.io> | 2021-04-12 14:07:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 14:07:05 +0200 |
commit | 53c42c82deb8e5ee882726c97e62b21e25b03b15 (patch) | |
tree | d9ca67ff20aa455d8680eee18726f100ce18a631 /pceplib | |
parent | Merge pull request #8440 from qlyoung/doc-describe-acceptable-commit-messages (diff) | |
parent | pceplib: add missing endian.h and config.h (diff) | |
download | frr-53c42c82deb8e5ee882726c97e62b21e25b03b15.tar.xz frr-53c42c82deb8e5ee882726c97e62b21e25b03b15.zip |
Merge pull request #8421 from opensourcerouting/xrelfo-arm
fix xrelfo on ARM(32) & cross-compile
Diffstat (limited to 'pceplib')
-rw-r--r-- | pceplib/pcep_msg_tlvs_encoding.c | 9 | ||||
-rw-r--r-- | pceplib/test/pcep_msg_tlvs_test.c | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pceplib/pcep_msg_tlvs_encoding.c b/pceplib/pcep_msg_tlvs_encoding.c index 967f13814..37f3353f7 100644 --- a/pceplib/pcep_msg_tlvs_encoding.c +++ b/pceplib/pcep_msg_tlvs_encoding.c @@ -25,6 +25,15 @@ * Encoding and decoding for PCEP Object TLVs. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef __FreeBSD__ +#include <sys/endian.h> +#else +#include <endian.h> +#endif /* __FreeBSD__ */ #include <stdlib.h> #include <string.h> diff --git a/pceplib/test/pcep_msg_tlvs_test.c b/pceplib/test/pcep_msg_tlvs_test.c index 6b650f682..57e1d16e9 100644 --- a/pceplib/test/pcep_msg_tlvs_test.c +++ b/pceplib/test/pcep_msg_tlvs_test.c @@ -21,6 +21,15 @@ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#ifdef __FreeBSD__ +#include <sys/endian.h> +#else +#include <endian.h> +#endif /* __FreeBSD__ */ #include <stdlib.h> #include <CUnit/CUnit.h> |