Package: libbsd Version: 0.8.2-1
After providing a minimal sys/cdefs.h libbsd builds with the attached patch with musl libc (O_* open flags need fcntl.h, funopen is not supported on musl).
diff -u -r libbsd-0.8.2/src/flopen.c ok/src/flopen.c --- libbsd-0.8.2/src/flopen.c 2011-07-05 16:56:44.000000000 +0000 +++ ok/src/flopen.c 2016-03-15 00:08:41.430611577 +0000 @@ -35,6 +35,7 @@ #include <stdarg.h> #include <unistd.h> #include <libutil.h> +#include <fcntl.h> int flopen(const char *path, int flags, ...) diff -u -r libbsd-0.8.2/src/funopen.c ok/src/funopen.c --- libbsd-0.8.2/src/funopen.c 2015-09-22 17:56:09.000000000 +0000 +++ ok/src/funopen.c 2016-03-15 00:28:02.500646182 +0000 @@ -138,5 +138,5 @@ return fopencookie(cookiewrap, mode, funcswrap); } #else -#error "Function funopen() needs to be ported." +//#error "Function funopen() needs to be ported." #endif diff -u -r libbsd-0.8.2/src/nlist.c ok/src/nlist.c --- libbsd-0.8.2/src/nlist.c 2015-09-23 05:59:34.000000000 +0000 +++ ok/src/nlist.c 2016-03-15 00:12:38.840618659 +0000 @@ -43,6 +43,7 @@ #include <stdio.h> #include <string.h> #include <unistd.h> +#include <fcntl.h> #if !defined(__NO_A_OUT_SUPPORT) #define _NLIST_DO_AOUT