From 01cad722667c7b25535b2d248598f3d535e7caa9 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 21 Apr 1998 22:58:23 +0000 Subject: Update. 1998-04-21 21:49 Zack Weinberg * misc/sys/cdefs.h: New macro __REDIRECT to support changing the asm symbol name of functions. * include/features.h: Kill redundant test. * dirent/dirent.h: Use new macros to implement __USE_FILE_OFFSET64. * io/ftw.h: Likewise. * io/sys/stat.h: Likewise. * io/sys/statfs.h: Likewise. * io/sys/statvfs.h: Likewise. * libio/stdio.h: Likewise. * resource/sys/resource.h: Likewise. * rt/aio.h: Likewise. * posix/unistd.h: Use new macros for __USE_FILE_OFFSET64 and __FAVOR_BSD. * signal/signal.h: Use new macros for BSD vs. SysV signal(). * misc/Makefile: Drop bsd-compat.c. Make libbsd-compat.a a dummy library. * misc/bsd-compat.c: Removed. --- signal/signal.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'signal') diff --git a/signal/signal.h b/signal/signal.h index 819a81803d..5fcc418e54 100644 --- a/signal/signal.h +++ b/signal/signal.h @@ -65,13 +65,13 @@ extern __sighandler_t __sysv_signal __P ((int __sig, #ifdef __USE_BSD extern __sighandler_t signal __P ((int __sig, __sighandler_t __handler)); #else -/* Make sure the used `signal' implementation is the SVID version. - When GNU CC is used we have a clean way to write this. */ -# if defined __GNUC__ && __GNUC__ >= 2 -extern __sighandler_t signal __P ((int __sig, __sighandler_t __handler)) - __asm__ ("__sysv_signal"); +/* Make sure the used `signal' implementation is the SVID version. */ +# ifdef __REDIRECT +extern __sighandler_t __REDIRECT (signal, + __P ((int __sig, __sighandler_t __handler)), + __sysv_signal); # else -# define signal(sig, handler) __sysv_signal ((sig), (handler)) +# define signal __sysv_signal # endif #endif -- cgit v1.2.1