scanmem: fix musl
This commit is contained in:
parent
3401d0eeaf
commit
8e2f5999f6
2 changed files with 28 additions and 6 deletions
28
srcpkgs/scanmem/patches/fix-musl.patch
Normal file
28
srcpkgs/scanmem/patches/fix-musl.patch
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
diff --git a/scanroutines.c b/scanroutines.c
|
||||||
|
index 2c5f33a..edc7c29 100644
|
||||||
|
--- scanroutines.c
|
||||||
|
+++ scanroutines.c
|
||||||
|
@@ -20,6 +20,8 @@
|
||||||
|
along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
|
||||||
|
+#define _GNU_SOURCE 1
|
||||||
|
+#include <sys/types.h>
|
||||||
|
#include <assert.h>
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
|
diff --git a/targetmem.h b/targetmem.h
|
||||||
|
index b62a4f2..25b5c9c 100644
|
||||||
|
--- targetmem.h
|
||||||
|
+++ targetmem.h
|
||||||
|
@@ -24,6 +24,9 @@
|
||||||
|
#ifndef TARGETMEM_H
|
||||||
|
#define TARGETMEM_H
|
||||||
|
|
||||||
|
+#define _GNU_SOURCE 1
|
||||||
|
+#include <sys/types.h>
|
||||||
|
+
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
|
@ -15,12 +15,6 @@ distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
|
||||||
checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
|
checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
|
||||||
CFLAGS="-D__NEED_pid_t"
|
CFLAGS="-D__NEED_pid_t"
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl)
|
|
||||||
broken="yes"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
NOCONFIGURE=1 ./autogen.sh
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue