diff mbox

[3/3] lib/libfec.c: fix build against musl

Message ID 1429827173-1739-3-git-send-email-joerg.krause@embedded.rocks
State Superseded
Headers show

Commit Message

Jörg Krause April 23, 2015, 10:12 p.m. UTC
Add missing #include <sys/types.h> for u_long.

Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
 lib/libfec.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Brian Norris May 28, 2015, 11:39 p.m. UTC | #1
On Fri, Apr 24, 2015 at 12:12:53AM +0200, Jörg Krause wrote:
> Add missing #include <sys/types.h> for u_long.

I pushed a different patch from another contributor that kills off the
u_long usage, so I think this should no longer be necessary. Let me know
if you still see issues.

Thanks,
Brian

> Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
> ---
>  lib/libfec.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/libfec.c b/lib/libfec.c
> index ff5a127..c5e7749 100644
> --- a/lib/libfec.c
> +++ b/lib/libfec.c
> @@ -45,6 +45,7 @@
>  #include <stdio.h>
>  #include <stdlib.h>
>  #include <string.h>
> +#include <sys/types.h>
>  
>  /*
>   * stuff used for testing purposes only
diff mbox

Patch

diff --git a/lib/libfec.c b/lib/libfec.c
index ff5a127..c5e7749 100644
--- a/lib/libfec.c
+++ b/lib/libfec.c
@@ -45,6 +45,7 @@ 
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <sys/types.h>
 
 /*
  * stuff used for testing purposes only