mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 00:02:17 +03:00
move the GNU siginfo renaming so it doesn't lead to mismatching names
This commit is contained in:
parent
8668f033bc
commit
855df698c4
@ -8,6 +8,10 @@ extern "C" {
|
|||||||
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
||||||
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
||||||
|
|
||||||
|
#ifdef _GNU_SOURCE
|
||||||
|
#define __siginfo siginfo
|
||||||
|
#endif
|
||||||
|
|
||||||
#define __NEED_size_t
|
#define __NEED_size_t
|
||||||
#define __NEED_pid_t
|
#define __NEED_pid_t
|
||||||
#define __NEED_uid_t
|
#define __NEED_uid_t
|
||||||
@ -88,7 +92,6 @@ void (*sigset(int, void (*)(int)))(int);
|
|||||||
#ifdef _GNU_SOURCE
|
#ifdef _GNU_SOURCE
|
||||||
typedef int (*sighandler_t)(int);
|
typedef int (*sighandler_t)(int);
|
||||||
void (*bsd_signal(int, void (*)(int)))(int);
|
void (*bsd_signal(int, void (*)(int)))(int);
|
||||||
#define __siginfo siginfo
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <bits/signal.h>
|
#include <bits/signal.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user