cmSystemTools: Fix compilation on DragonFly BSD

Define `_XOPEN_SOURCE >= 700` to make `gettimeofday()` et al. available.
This commit is contained in:
Charlotte Koch
2024-04-02 14:21:43 -07:00
committed by Brad King
parent 659bc156ef
commit 4c70e72cae

View File

@@ -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