nwipe: unmark broken musl

This commit is contained in:
Nathan Owens 2019-11-17 14:25:08 -06:00 committed by Helmut Pozimski
parent 990c9db6cd
commit 8c68f7d56e
2 changed files with 16 additions and 6 deletions

View file

@ -0,0 +1,16 @@
diff --git src/nwipe.c src/nwipe.c
index c7586fd..ec2eb1d 100644
--- src/nwipe.c
+++ src/nwipe.c
@@ -26,9 +26,10 @@
#include <time.h>
#include <signal.h>
#include <pthread.h>
+#if defined(__GLIBC__)
#include <bits/pthreadtypes.h>
#include <bits/sigthread.h>
-
+#endif
#include "nwipe.h"
#include "context.h"
#include "method.h"

View file

@ -2,7 +2,6 @@
pkgname=nwipe
version=0.26
revision=1
build_style=gnu-configure
hostmakedepends="automake pkg-config"
makedepends="libuuid-devel libparted-devel ncurses-devel"
@ -13,11 +12,6 @@ homepage="https://github.com/martijnvanbrummelen/nwipe"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=b8f37b4f1529931bdd5635d33baa35b7c08755e7ef5f0556b629c0360c85c920
# nwipe.c:29:10: fatal error: bits/pthreadtypes.h: No such file or directory
case "$XBPS_TARGET_MACHINE" in
*-musl) broken="nwipe broken on musl"
esac
CFLAGS="-D_FILE_OFFSET_BITS=64"
pre_configure() {