<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">--- CMakeLists.txt	2023-11-08 05:10:14
+++ CMakeLists.txt	2023-11-24 20:44:13
@@ -141,6 +141,11 @@
 option(
 	RS_ANDROID
 	"Enable when compiling libretroshare for Android"
+	OFF )
+
+option(
+	RS_XCODE15
+	"Fix build with Xcode 15"
 	OFF )
 
 cmake_dependent_option(
@@ -476,6 +481,11 @@
 		V07_NON_BACKWARD_COMPATIBLE_CHANGE_UNNAMED )
 endif()
 
+if(APPLE AND RS_XCODE15)
+	target_compile_definitions(
+		${PROJECT_NAME} PRIVATE _LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION)
+endif()
+
 if(NOT RS_DH_PRIME_INIT_CHECK)
 	target_compile_definitions(
 		${PROJECT_NAME} PRIVATE RS_DISABLE_DIFFIE_HELLMAN_INIT_CHECK )
</pre></body></html>