summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorCharlotte Koch <dressupgeekout@gmail.com>2024-04-02 21:21:43 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-02 21:33:02 (GMT)
commit4c70e72caecac44caf31a68e12b086e878a48101 (patch)
tree5b5be13978cfcf910986c02fe2e581e03426d7bf /Source
parent659bc156eff0a90c2ea3fdb3d866e07f8c0e436b (diff)
downloadCMake-4c70e72caecac44caf31a68e12b086e878a48101.zip
CMake-4c70e72caecac44caf31a68e12b086e878a48101.tar.gz
CMake-4c70e72caecac44caf31a68e12b086e878a48101.tar.bz2
cmSystemTools: Fix compilation on DragonFly BSD
Define `_XOPEN_SOURCE >= 700` to make `gettimeofday()` et al. available.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmSystemTools.cxx3
1 files changed, 2 insertions, 1 deletions
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