Skip to content

Commit 0ec49fe

Browse files
committed
Define _BSD_SOURCE in builtin.c for OpenBSD support
On OpenBSD, some prototypes are hidden behind `_BSD_SOURCE`. Defining this variable fixes #3252, and also fixes #3276. This can be seen as a regression of #2631.
1 parent 8ba03f7 commit 0ec49fe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/builtin.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# define _XPG6
66
# define __EXTENSIONS__
77
#endif
8+
#ifdef __OpenBSD__
9+
# define _BSD_SOURCE
10+
#endif
811
#include <sys/time.h>
912
#include <stdlib.h>
1013
#include <stddef.h>

0 commit comments

Comments
 (0)