blob: e6c9f2100167c27e41a00848dc3ccf93505e6312 [file] [log] [blame]
diff -r -u -d /home/enh/Downloads/strace-4.8/defs.h ./defs.h
--- /home/enh/Downloads/strace-4.8/defs.h 2013-05-14 07:10:42.000000000 -0700
+++ ./defs.h 2014-01-09 13:41:19.118883996 -0800
@@ -222,7 +222,7 @@
# define PTRACE_EVENT_EXIT 6
#endif
-#if !defined(__GLIBC__)
+#if !defined(__GLIBC__) && !defined(__BIONIC__)
# define PTRACE_PEEKUSER PTRACE_PEEKUSR
# define PTRACE_POKEUSER PTRACE_POKEUSR
#endif
diff -r -u -d /home/enh/Downloads/strace-4.8/ioctl.c ./ioctl.c
--- /home/enh/Downloads/strace-4.8/ioctl.c 2013-05-02 15:50:55.000000000 -0700
+++ ./ioctl.c 2014-01-09 13:36:50.612156623 -0800
@@ -86,8 +86,10 @@
case 0x03:
case 0x12:
return block_ioctl(tcp, code, arg);
+#ifndef HAVE_ANDROID_OS
case 0x22:
return scsi_ioctl(tcp, code, arg);
+#endif
case 'L':
return loop_ioctl(tcp, code, arg);
case 'M':
diff -r -u -d /home/enh/Downloads/strace-4.8/ipc.c ./ipc.c
--- /home/enh/Downloads/strace-4.8/ipc.c 2013-02-23 11:07:44.000000000 -0800
+++ ./ipc.c 2014-01-09 13:36:50.612156623 -0800
@@ -34,9 +34,15 @@
#endif
#include <fcntl.h>
#include <sys/ipc.h>
+#ifdef HAVE_ANDROID_OS
+#include <linux/sem.h>
+#include <linux/msg.h>
+#include <linux/shm.h>
+#else
#include <sys/sem.h>
#include <sys/msg.h>
#include <sys/shm.h>
+#endif
#ifndef MSG_STAT
#define MSG_STAT 11
diff -r -u -d /home/enh/Downloads/strace-4.8/time.c ./time.c
--- /home/enh/Downloads/strace-4.8/time.c 2012-05-01 14:17:51.000000000 -0700
+++ ./time.c 2014-01-09 12:41:29.912928183 -0800
@@ -29,7 +29,11 @@
#include "defs.h"
#include <linux/version.h>
+#if HAVE_ANDROID_OS
+#include <linux/timex.h>
+#else
#include <sys/timex.h>
+#endif
#include <linux/ioctl.h>
#include <linux/rtc.h>
diff -r -u -d /home/enh/Downloads/strace-4.8/util.c ./util.c
--- /home/enh/Downloads/strace-4.8/util.c 2013-05-06 11:23:01.000000000 -0700
+++ ./util.c 2014-01-09 13:36:50.622156503 -0800
@@ -46,7 +46,9 @@
#ifdef HAVE_SYS_REG_H
# include <sys/reg.h>
-# define PTRACE_PEEKUSR PTRACE_PEEKUSER
+# ifndef PTRACE_PEEKUSR
+# define PTRACE_PEEKUSR PTRACE_PEEKUSER
+# endif
#elif defined(HAVE_LINUX_PTRACE_H)
# undef PTRACE_SYSCALL
# ifdef HAVE_STRUCT_IA64_FPREG