From f6ccc15457f05d0c0ced683ffe01cd014c491fe6 Mon Sep 17 00:00:00 2001 From: Bruce Beare Date: Thu, 27 Jan 2011 10:26:30 -0800 Subject: [PATCH] move some typedefs to procfs.h required by gdbserver build Change-Id: I51fba4ceb80b63e583f462a2a00f3f658c7cdd36 Signed-off-by: Bruce Beare --- libthread_db/include/sys/procfs.h | 22 ++++++++++++++++++++++ libthread_db/include/thread_db.h | 4 +--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 libthread_db/include/sys/procfs.h diff --git a/libthread_db/include/sys/procfs.h b/libthread_db/include/sys/procfs.h new file mode 100644 index 000000000..0ae7a0bd9 --- /dev/null +++ b/libthread_db/include/sys/procfs.h @@ -0,0 +1,22 @@ +/* + * Copyright 2006 The Android Open Source Project + */ + +#ifndef _SYS_PROCFS_H +#define _SYS_PROCFS_H + +#include + + +#ifdef __cplusplus +extern "C"{ +#endif + +typedef pid_t lwpid_t; +typedef void *psaddr_t; + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/libthread_db/include/thread_db.h b/libthread_db/include/thread_db.h index 1b36cb2b4..6ff968f41 100644 --- a/libthread_db/include/thread_db.h +++ b/libthread_db/include/thread_db.h @@ -9,9 +9,7 @@ #include #include #include - -typedef void *psaddr_t; -typedef pid_t lwpid_t; +#include #define TD_THR_ANY_USER_FLAGS 0xffffffff #define TD_THR_LOWEST_PRIORITY -20