mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-09 07:56:29 +00:00
lib: Actually include the header file
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
ba0cb3fe96
commit
a8a5dbc01d
@ -36,6 +36,8 @@ be32dec(const void *pp)
|
|||||||
return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) +
|
return ((uint32_t)(p[3]) + ((uint32_t)(p[2]) << 8) +
|
||||||
((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24));
|
((uint32_t)(p[1]) << 16) + ((uint32_t)(p[0]) << 24));
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !HAVE_DECL_BE32ENC
|
#if !HAVE_DECL_BE32ENC
|
||||||
@ -49,6 +51,8 @@ be32enc(void *pp, uint32_t x)
|
|||||||
p[1] = (x >> 16) & 0xff;
|
p[1] = (x >> 16) & 0xff;
|
||||||
p[0] = (x >> 24) & 0xff;
|
p[0] = (x >> 24) & 0xff;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
#include <sys/endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user