Merge topic 'dragonfly_support'

4c70e72cae cmSystemTools: Fix compilation on DragonFly BSD

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9400
This commit is contained in:
Brad King
2024-04-03 13:37:19 +00:00
committed by Kitware Robot

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