posixovl: unmark broken on musl

This commit is contained in:
Nathan Owens 2019-11-18 18:04:49 -06:00 committed by Helmut Pozimski
parent 2f463fc143
commit 04f215cf07
2 changed files with 17 additions and 4 deletions

View file

@ -0,0 +1,17 @@
From: Nathan Owens <ndowens04@gmail.com>
On musl-based systems, <string.h> causes redefintions
---
diff --git posixovl.c posixovl.c
index ae64f21..04e41fb 100644
--- posixovl.c
+++ posixovl.c
@@ -30,7 +30,9 @@
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#if defined(__GLIBC__)
#include <string.h>
+#endif
#include <unistd.h>
#ifdef HAVE_XATTR_XATTR_H
# include <attr/xattr.h>

View file

@ -11,7 +11,3 @@ license="GPL-2.0-or-later"
homepage="https://sourceforge.net/projects/posixovl/"
distfiles="${SOURCEFORGE_SITE}/posixovl/files/${pkgname}-${version}.tar.xz"
checksum=a827798b02c0f27b37d8a10502e76c21adac43b887a49e7234e8d27668f62e72
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="posixovl.c:196:14: error: conflicting types for strlcpy" ;;
esac