From 2c288fa1b6ecc26504717aa6b878dfe9fb5bca3e Mon Sep 17 00:00:00 2001 From: Andrew Opalach Date: Mon, 1 Jan 2024 11:56:21 -0500 Subject: Add subprojects Signed-off-by: Andrew Opalach --- .../packagefiles/notcurses/notcurses_xopen_source.diff | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 subprojects/packagefiles/notcurses/notcurses_xopen_source.diff (limited to 'subprojects/packagefiles/notcurses') diff --git a/subprojects/packagefiles/notcurses/notcurses_xopen_source.diff b/subprojects/packagefiles/notcurses/notcurses_xopen_source.diff new file mode 100644 index 0000000..f334169 --- /dev/null +++ b/subprojects/packagefiles/notcurses/notcurses_xopen_source.diff @@ -0,0 +1,16 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 5d6c1420d..7f575f257 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -226,10 +226,8 @@ endif() + # don't want these on freebsd/dragonfly/osx + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + target_compile_definitions(notcurses-core +- PUBLIC +- _XOPEN_SOURCE=700 # wcwidth(3) requires _XOPEN_SOURCE, and is in our headers + PRIVATE +- _GNU_SOURCE _DEFAULT_SOURCE ++ _GNU_SOURCE _DEFAULT_SOURCE _XOPEN_SOURCE=700 + ) + target_compile_definitions(notcurses-core-static + PUBLIC -- cgit v1.2.3-101-g0448