From: Elliott Hughes Date: Tue, 13 Jun 2017 21:29:15 +0000 (-0700) Subject: The bsd_signal declaration shouldn't be visible if API > 21. X-Git-Tag: android-x86-9.0-r1~66^2~214^2~63^2~29^2~52^2 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=583ef362c8053e41e491f24ddc076f29fa7fbb92;p=android-x86%2Fbionic.git The bsd_signal declaration shouldn't be visible if API > 21. 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 --- diff --git a/libc/include/android/legacy_signal_inlines.h b/libc/include/android/legacy_signal_inlines.h index a5d3a6f7d..09db2a619 100644 --- a/libc/include/android/legacy_signal_inlines.h +++ b/libc/include/android/legacy_signal_inlines.h @@ -37,10 +37,10 @@ __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;