OSDN Git Service

Prepare to switch to the uapi <linux/signal.h>.
authorElliott Hughes <enh@google.com>
Thu, 7 Nov 2013 20:28:46 +0000 (12:28 -0800)
committerElliott Hughes <enh@google.com>
Thu, 7 Nov 2013 20:29:07 +0000 (12:29 -0800)
<time.h> didn't need to copy the cruft from <signal.h>, and
<signal.h> only needs the uid_t hack when it's not using
uapi headers.

pthread_exit.cpp should include what it uses.

Change-Id: I836c36abe0f0a781d41fc425b249d1c7686bb124

libc/bionic/pthread_exit.cpp
libc/include/signal.h
libc/include/time.h

index aa9bd38..cc86271 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <pthread.h>
 
+#include <signal.h>
 #include <stdlib.h>
 #include <sys/mman.h>
 
index 5e74161..fe2c586 100644 (file)
 /* For 64-bit, the kernel's struct sigaction doesn't match the POSIX one,
  * so we need to expose our own and translate behind the scenes. */
 #  define sigaction __kernel_sigaction
-#  include <asm/signal.h>
+#  include <linux/signal.h>
 #  undef sigaction
 #else
 /* For 32-bit, we're stuck with the definitions we already shipped,
  * even though they contain a sigset_t that's too small. */
-#  include <asm/signal.h>
+#  define __ARCH_SI_UID_T __kernel_uid32_t /* TODO: remove this when we switch to uapi. */
+#  include <linux/signal.h>
+#  undef __ARCH_SI_UID_T
 #endif
 
-#define __ARCH_SI_UID_T __kernel_uid32_t
-#include <asm/siginfo.h>
-#undef __ARCH_SI_UID_T
-
 __BEGIN_DECLS
 
 typedef int sig_atomic_t;
index c2c3ee8..3f2047c 100644 (file)
 #include <sys/cdefs.h>
 #include <sys/time.h>
 
-/* For struct sigevent. */
-#define __ARCH_SI_UID_T __kernel_uid32_t
-#include <asm/siginfo.h>
-#undef __ARCH_SI_UID_T
-
 __BEGIN_DECLS
 
 #define CLOCKS_PER_SEC 1000000
@@ -45,6 +40,8 @@ extern char* tzname[];
 extern int daylight;
 extern long int timezone;
 
+struct sigevent;
+
 struct tm {
   int tm_sec;
   int tm_min;