We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c3f7ed commit 34af636Copy full SHA for 34af636
2 files changed
include/compat.h
@@ -7,6 +7,10 @@
7
#if !defined(_POSIX_C_SOURCE)
8
#define _POSIX_C_SOURCE 200809L
9
#endif
10
+
11
+#if !defined(_XOPEN_SOURCE)
12
+#define _XOPEN_SOURCE 700
13
+#endif
14
15
16
#if defined(__GNUC__)
src/platform/posix/init.c
@@ -36,13 +36,7 @@ platform_sigaction(int sig)
36
{
37
struct sigaction act = {
38
.sa_flags = SA_SIGINFO | SA_RESETHAND,
39
-#ifndef __FreeBSD__
40
.sa_sigaction = platform_signal_handler,
41
-#else
42
- .__sigaction_u = {
43
- .__sa_sigaction =platform_signal_handler
44
- },
45
-#endif
46
};
47
if (sigaction(sig, &act, 0) == -1) {
48
LOG_W("failed to install signal handler: %s", strerror(errno));
0 commit comments