summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-11-23 15:07:16 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-11-23 15:07:16 -0500
commit6f20f7bd2209a90872a64a40de96912fa03f42be (patch)
tree673ff86c1e2514de4c39db4e85615a30f151ead4
parentff449fd9b74aa88fba58530de5aaf376f3d16510 (diff)
downloadbfs-6f20f7bd2209a90872a64a40de96912fa03f42be.tar.xz
prelude: Define _QNX_SOURCE
-rw-r--r--src/prelude.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/prelude.h b/src/prelude.h
index a0cc2a1..de89a6c 100644
--- a/src/prelude.h
+++ b/src/prelude.h
@@ -62,6 +62,11 @@
# define _POSIX_PTHREAD_SEMANTICS 1
#endif
+/** QNX extensions. */
+#if __QNX__
+# define _QNX_SOURCE 1
+#endif
+
// Get the convenience macros that became standard spellings in C23
#if __STDC_VERSION__ < 202311L