mirror of
https://sourceware.org/git/glibc.git
synced 2026-01-06 11:51:29 +03:00
Protect real time signal definitions to let glibc compile with older Linux versions (2.0.10 to 2.1.100 or so).
This commit is contained in:
@@ -45,7 +45,9 @@ extern int __syscall_rt_sigaction (int, const struct kernel_sigaction *,
|
||||
int __libc_missing_rt_sigs;
|
||||
#endif
|
||||
|
||||
#ifdef __NR_rt_sigaction
|
||||
static void restore_rt (void) asm ("__restore_rt");
|
||||
#endif
|
||||
static void restore (void) asm ("__restore");
|
||||
|
||||
|
||||
@@ -155,8 +157,10 @@ asm \
|
||||
" int $0x80" \
|
||||
);
|
||||
|
||||
#ifdef __NR_rt_sigaction
|
||||
/* The return code for realtime-signals. */
|
||||
RESTORE (restore_rt, __NR_rt_sigreturn)
|
||||
#endif
|
||||
|
||||
/* For the boring old signals. */
|
||||
# undef RESTORE2
|
||||
|
||||
Reference in New Issue
Block a user