[Lldb-commits] [lldb] [NFCI][lldb][test] Enable GNU POSIX extensions where necessary (PR #166768)
Raul Tambre via lldb-commits
lldb-commits at lists.llvm.org
Thu Nov 6 10:26:02 PST 2025
================
@@ -1,3 +1,7 @@
+#if defined(__linux__)
+#define _DEFAULT_SOURCE /* for kill(), usleep() and GNU's signal() */
+#endif
----------------
tambry wrote:
Done. Went with this approach initially as most people seem to prefer scoping these to per-file to avoid accidentally using POSIX extensions without knowing. That's what I did [for compiler-rt](https://github.com/llvm/llvm-project/commit/88d303e6d42a17a5b1789f6f4b3a1b4ee98b5bf7), for example.
https://github.com/llvm/llvm-project/pull/166768
More information about the lldb-commits
mailing list