From 2d45934b7c81d9e906d733f028bb6f312cbca1f5 Mon Sep 17 00:00:00 2001 From: Nikola Radakovic Date: Fri, 30 Oct 2026 11:24:02 +0000 Subject: [PATCH] Add QNX_SOURCE for c compile actions The current default feature for C doesn't include QNX_SOURCE flag for QNX target builds. This PR adds the flag for C compile actions. --- features/native/default_compile_flags/BUILD | 1 + 1 file changed, 1 insertion(+) diff --git a/features/native/default_compile_flags/BUILD b/features/native/default_compile_flags/BUILD index 9bcb393..291816c 100644 --- a/features/native/default_compile_flags/BUILD +++ b/features/native/default_compile_flags/BUILD @@ -33,6 +33,7 @@ cc_args( "-z noexecstack", ], "@platforms//os:qnx": [ + "-D_QNX_SOURCE", "-fno-canonical-system-headers", ], "//conditions:default": [],