scanmem: fix musl

This commit is contained in:
maxice8 2019-01-25 12:22:45 -02:00
parent 3401d0eeaf
commit 8e2f5999f6
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
2 changed files with 28 additions and 6 deletions

View 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>

View file

@ -15,12 +15,6 @@ distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=f02054b91322cf41517506158fcb74554e9fc6644e696f8aa25e5acf162d374b
CFLAGS="-D__NEED_pid_t"
case "$XBPS_TARGET_MACHINE" in
*-musl)
broken="yes"
;;
esac
pre_configure() {
NOCONFIGURE=1 ./autogen.sh
}