[Lldb-commits] [lldb] [LLDB] Add ifndef to platform linux (PR #141971)

Jacob Lalonde via lldb-commits lldb-commits at lists.llvm.org
Thu May 29 09:32:17 PDT 2025


================
@@ -34,6 +34,20 @@
 #define MAP_PRIVATE 2
 #define MAP_ANON 0x20
 
+// For other platforms that use platform linux
+#ifndef SIGILL
+#define SIGILL 4
+#endif
+#ifndef SIGBUS
+#define SIGBUS 7
+#endif
+#ifndef SIGFPE
+#define SIGFPE 8
+#endif
+#ifndef SIGSEGV
+#define SIGSEGV 11
----------------
Jlalond wrote:

They're all defined in [signal.h](https://github.com/torvalds/linux/blob/master/include/uapi/asm-generic/signal.h), but we can build this class on a platform that won't have access to signal.h, so we need to ensure they're defined. 

https://github.com/llvm/llvm-project/pull/141971


More information about the lldb-commits mailing list