From 4c70e72caecac44caf31a68e12b086e878a48101 Mon Sep 17 00:00:00 2001 From: Charlotte Koch Date: Tue, 2 Apr 2024 14:21:43 -0700 Subject: cmSystemTools: Fix compilation on DragonFly BSD Define `_XOPEN_SOURCE >= 700` to make `gettimeofday()` et al. available. --- Source/cmSystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 3b70543..964bac1 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -6,7 +6,8 @@ // NOLINTNEXTLINE(bugprone-reserved-identifier) # define _POSIX_C_SOURCE 200809L #endif -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__QNX__) +#if defined(__FreeBSD__) || defined(__DragonFly__) || defined(__NetBSD__) || \ + defined(__QNX__) // For isascii // NOLINTNEXTLINE(bugprone-reserved-identifier) # define _XOPEN_SOURCE 700 -- cgit v0.12