openbsd-ports/devel/cmake/patches/patch-Source_cmLoadCommandCommand_cxx
rsadowski 4cb5b2f199 Update cmake to 3.19.1
Changelog:
https://cmake.org/cmake/help/v3.18/release/3.18.html
https://cmake.org/cmake/help/v3.19/release/3.19.html

This update went through a amd64 bulk build and also tested with ~500 ports on
macppc without issues by cwen@
2020-12-30 07:17:34 +00:00

20 lines
728 B
Plaintext

$OpenBSD: patch-Source_cmLoadCommandCommand_cxx,v 1.1 2020/12/30 07:17:34 rsadowski Exp $
Index: Source/cmLoadCommandCommand.cxx
--- Source/cmLoadCommandCommand.cxx.orig
+++ Source/cmLoadCommandCommand.cxx
@@ -1,11 +1,11 @@
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
-#if !defined(_WIN32) && !defined(__sun)
+#if !defined(_WIN32) && !defined(__sun) && !defined(__OpenBSD__)
// POSIX APIs are needed
# define _POSIX_C_SOURCE 200809L
#endif
-#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
// For isascii
# define _XOPEN_SOURCE 700
#endif