Define sighandler_t only is _GNU_SOURCE is not defined.

This commit is contained in:
Pāvels Nadtočajevs
2026-01-27 12:22:54 +02:00
parent a4bbad2ba8
commit 25e8c308e6
+1 -1
View File
@@ -43,7 +43,7 @@
#include <cerrno>
#include <csignal>
#ifndef sighandler_t
#ifndef _GNU_SOURCE
typedef typeof(void(int)) *sighandler_t;
#endif