OSDN Git Service

The bsd_signal declaration shouldn't be visible if API > 21.
authorElliott Hughes <enh@google.com>
Tue, 13 Jun 2017 21:29:15 +0000 (14:29 -0700)
committerElliott Hughes <enh@google.com>
Tue, 13 Jun 2017 21:29:15 +0000 (14:29 -0700)
This causes GNU make to fail to build:

  main.o:main.c:(.text+0x18c): more undefined references to `bsd_signal' follow

Bug: N/A
Test: built GNU make with a hacked standalone toolchain
Change-Id: Icdfb4cf674df8abed44f6671454bed9f8d68e74b

libc/include/android/legacy_signal_inlines.h

index a5d3a6f..09db2a6 100644 (file)
 
 __BEGIN_DECLS
 
-sighandler_t bsd_signal(int signum, sighandler_t handler) __REMOVED_IN(21);
-
 #if __ANDROID_API__ < __ANDROID_API_L__
 
+sighandler_t bsd_signal(int signum, sighandler_t handler) __REMOVED_IN(21);
+
 /* These weren't introduced until L. */
 int __libc_current_sigrtmax() __attribute__((__weak__)) __VERSIONER_NO_GUARD;
 int __libc_current_sigrtmin() __attribute__((__weak__)) __VERSIONER_NO_GUARD;