summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/notcurses
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-01-01 11:56:21 -0500
committerAndrew Opalach <andrew@akon.city> 2024-01-01 11:56:21 -0500
commit2c288fa1b6ecc26504717aa6b878dfe9fb5bca3e (patch)
treef49bd49fb83ba5ef17994eeb264c9bdfc0791a95 /subprojects/packagefiles/notcurses
parent130a0edc0405e53b45f8b2f8da0b94356480a644 (diff)
downloadcamu-2c288fa1b6ecc26504717aa6b878dfe9fb5bca3e.tar.gz
camu-2c288fa1b6ecc26504717aa6b878dfe9fb5bca3e.tar.bz2
camu-2c288fa1b6ecc26504717aa6b878dfe9fb5bca3e.zip
Add subprojects
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'subprojects/packagefiles/notcurses')
-rw-r--r--subprojects/packagefiles/notcurses/notcurses_xopen_source.diff16
1 files changed, 16 insertions, 0 deletions
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