mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
cmSystemTools: Fix compilation on DragonFly BSD
Define `_XOPEN_SOURCE >= 700` to make `gettimeofday()` et al. available.
This commit is contained in:
1 parent
659bc156ef
commit
4c70e72cae
1 file changed
+2
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user