[Pdbg] [PATCH] sbefifo: Fix musl build

Amitay Isaacs amitay at ozlabs.org
Mon Sep 30 16:26:25 AEST 2019


Reviewed-by: Amitay Isaacs <amitay at ozlabs.org>

On Mon, 2019-09-30 at 15:28 +0930, Joel Stanley wrote:
> Musl requires endian.h when using be32toh.
> 
> Signed-off-by: Joel Stanley <joel at jms.id.au>
> ---
>  libsbefifo/ffdc.c      | 1 +
>  libsbefifo/operation.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/libsbefifo/ffdc.c b/libsbefifo/ffdc.c
> index f29afc1d0a0e..3b82e210b656 100644
> --- a/libsbefifo/ffdc.c
> +++ b/libsbefifo/ffdc.c
> @@ -17,6 +17,7 @@
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> +#include <endian.h>
>  
>  #include "sbefifo_private.h"
>  
> diff --git a/libsbefifo/operation.c b/libsbefifo/operation.c
> index 43418a15904e..1ad577cf35e4 100644
> --- a/libsbefifo/operation.c
> +++ b/libsbefifo/operation.c
> @@ -20,6 +20,7 @@
>  #include <unistd.h>
>  #include <errno.h>
>  #include <assert.h>
> +#include <endian.h>
>  
>  #include "sbefifo_private.h"
>  
> -- 
> 2.23.0
> 

Amitay.
-- 

Imagination is more important than knowledge. - Albert Einstein



More information about the Pdbg mailing list