diff mbox series

[1/2] libnetlink.h: Add <endian.h> for htobe64

Message ID 20240712191209.31324-1-contact@hacktivis.me (mailing list archive)
State Not Applicable
Headers show
Series [1/2] libnetlink.h: Add <endian.h> for htobe64 | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Haelwenn (lanodan) Monnier July 12, 2024, 7:12 p.m. UTC
Required to build on musl (1.2.5)

Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
---
 include/libnetlink.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Alyssa Ross Nov. 26, 2024, 7:20 p.m. UTC | #1
On Fri, Jul 12, 2024 at 09:12:08PM +0200, Haelwenn (lanodan) Monnier wrote:
> Required to build on musl (1.2.5)
>
> Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
> ---
>  include/libnetlink.h | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Alyssa Ross <hi@alyssa.is>

> diff --git a/include/libnetlink.h b/include/libnetlink.h
> index 30f0c2d..2b207e8 100644
> --- a/include/libnetlink.h
> +++ b/include/libnetlink.h
> @@ -3,6 +3,7 @@
>  #define __LIBNETLINK_H__ 1
>
>  #include <stdio.h>
> +#include <endian.h>
>  #include <string.h>
>  #include <asm/types.h>
>  #include <linux/netlink.h>
> --
> 2.44.2
>
diff mbox series

Patch

diff --git a/include/libnetlink.h b/include/libnetlink.h
index 30f0c2d..2b207e8 100644
--- a/include/libnetlink.h
+++ b/include/libnetlink.h
@@ -3,6 +3,7 @@ 
 #define __LIBNETLINK_H__ 1
 
 #include <stdio.h>
+#include <endian.h>
 #include <string.h>
 #include <asm/types.h>
 #include <linux/netlink.h>