From f352eeb90cbf402739cac9f062a9af8b7dda53d9 Mon Sep 17 00:00:00 2001 From: Elad Lahav Date: Tue, 10 Jan 2023 06:11:39 -0500 Subject: [PATCH] Use the built-in version of vsnprintf() to support printing NULLs --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ab803015..0f2bf8a22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1817,6 +1817,12 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU) set(HAVE_RPATH TRUE) endif() + if(QNX) + # QNX's *printf() family generates a SIGSEGV if NULL is passed for a string + # specifier (on purpose), but SDL expects "(null)". Use the built-in + # implementation. + set (HAVE_VSNPRINTF 0) + endif() elseif(WINDOWS) find_program(WINDRES windres)