cmSystemTools: Fix compilation on DragonFly BSD

Define `_XOPEN_SOURCE >= 700` to make `gettimeofday()` et al. available.
This commit is contained in:
Charlotte Koch authored and Brad King committed 2024-04-02 17:33:02 -04:00
1 parent 659bc156ef
commit 4c70e72cae
1 file changed
+2 -1
+2 -1
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