From 8b16b9b246eb4b03c231285037adc99e1b2e86f7 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Tue, 7 Mar 2023 06:40:58 -0800 Subject: [PATCH] Need to enable __BSD_VISIBLE on DragonFly in conjunction with -std=c99 --- src/core/features.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/features.h b/src/core/features.h index da8c248d..0adb136a 100644 --- a/src/core/features.h +++ b/src/core/features.h @@ -61,4 +61,9 @@ #define _NETBSD_SOURCE #endif +/* Needed for several things when building with -std=c99. */ +#if !__BSD_VISIBLE && defined(__DragonFly__) +#define __BSD_VISIBLE 1 +#endif + #endif