strace: add a complete patch for musl.

This commit is contained in:
Juan RP 2015-05-09 11:48:50 +02:00
parent eaf9688be3
commit 4ee5b0585e
4 changed files with 54 additions and 24 deletions

View file

@ -1,13 +0,0 @@
--- defs.h
+++ defs.h
@@ -159,6 +159,10 @@
# include <sys/ptrace.h>
#endif
+#if defined(ARM)
+# include <asm/ptrace.h>
+#endif
+
#if defined(POWERPC)
# include <asm/ptrace.h>
#endif

View file

@ -0,0 +1,53 @@
--- resource.c
+++ resource.c
@@ -31,6 +31,7 @@
#include "defs.h"
#include <sys/resource.h>
#include <sys/times.h>
+#include <sys/sysinfo.h>
#include <linux/kernel.h>
#include "xlat/resources.h"
--- resource.c 2015-05-09 09:40:18.766000000 +0000
+++ resource.c 2015-05-09 09:39:45.556000000 +0000
@@ -32,7 +32,6 @@
#include <sys/resource.h>
#include <sys/times.h>
#include <sys/sysinfo.h>
-#include <linux/kernel.h>
#include "xlat/resources.h"
--- evdev.c 2015-02-22 02:29:55.000000000 +0000
+++ evdev.c 2015-05-09 09:38:40.513000000 +0000
@@ -28,6 +28,8 @@
#include "defs.h"
+#include <linux/ioctl.h> /* _IOC_NR */
+
#ifdef HAVE_LINUX_INPUT_H
#include <linux/input.h>
#include "xlat/evdev_abs.h"
--- mknod.c 2014-12-11 21:39:12.000000000 +0000
+++ mknod.c 2015-05-09 09:39:12.946000000 +0000
@@ -1,5 +1,6 @@
#include "defs.h"
+#include <sys/stat.h> /* S_IFMT */
#include <fcntl.h>
#ifdef MAJOR_IN_SYSMACROS
--- printmode.c 2014-12-11 21:39:02.000000000 +0000
+++ printmode.c 2015-05-09 09:39:32.993000000 +0000
@@ -1,5 +1,6 @@
#include "defs.h"
+#include <sys/stat.h> /* S_IFMT */
#include <fcntl.h>
#include "xlat/modetypes.h"

View file

@ -1,10 +0,0 @@
--- resource.c
+++ resource.c
@@ -31,6 +31,7 @@
#include "defs.h"
#include <sys/resource.h>
#include <sys/times.h>
+#include <sys/sysinfo.h>
#include <linux/kernel.h>
#include "xlat/resources.h"

View file

@ -1,7 +1,7 @@
# Template file for 'strace'
pkgname=strace
version=4.10
revision=2
revision=3
build_pie=yes
build_style=gnu-configure
configure_args="--enable-libunwind"