Merge pull request #115437 from bruvzg/macos_sigh
Define `sighandler_t` only if `_GNU_SOURCE` is not defined.
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include <cerrno>
|
||||
#include <csignal>
|
||||
|
||||
#ifndef sighandler_t
|
||||
#ifndef _GNU_SOURCE
|
||||
typedef typeof(void(int)) *sighandler_t;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user