Skip to content

Commit 34af636

Browse files
committed
always define _XOPEN_SOURCE to 700
1 parent 1c3f7ed commit 34af636

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

include/compat.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
#if !defined(_POSIX_C_SOURCE)
88
#define _POSIX_C_SOURCE 200809L
99
#endif
10+
11+
#if !defined(_XOPEN_SOURCE)
12+
#define _XOPEN_SOURCE 700
13+
#endif
1014
#endif
1115

1216
#if defined(__GNUC__)

src/platform/posix/init.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ platform_sigaction(int sig)
3636
{
3737
struct sigaction act = {
3838
.sa_flags = SA_SIGINFO | SA_RESETHAND,
39-
#ifndef __FreeBSD__
4039
.sa_sigaction = platform_signal_handler,
41-
#else
42-
.__sigaction_u = {
43-
.__sa_sigaction =platform_signal_handler
44-
},
45-
#endif
4640
};
4741
if (sigaction(sig, &act, 0) == -1) {
4842
LOG_W("failed to install signal handler: %s", strerror(errno));

0 commit comments

Comments
 (0)