From 6778a43c8e618d9d4e361b100e3e91f066fdf72a Mon Sep 17 00:00:00 2001 From: tevzi2 Date: Sun, 14 Apr 2024 19:43:25 +0200 Subject: [PATCH] added missing signal constants for espidf (apply to `main`) (cherry picked from commit 539ec751f337c784ff09ca17f7cf2be953d0ad3e) --- src/unix/newlib/espidf/mod.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/unix/newlib/espidf/mod.rs b/src/unix/newlib/espidf/mod.rs index 409d7ad9bd784..e2e98ee9c394a 100644 --- a/src/unix/newlib/espidf/mod.rs +++ b/src/unix/newlib/espidf/mod.rs @@ -89,6 +89,16 @@ pub const MSG_EOR: ::c_int = 0x08; pub const PTHREAD_STACK_MIN: ::size_t = 768; +pub const SIGABRT: ::size_t = 1; +pub const SIGFPE: ::size_t = 1; +pub const SIGILL: ::size_t = 1; +pub const SIGINT: ::size_t = 1; +pub const SIGSEGV: ::size_t = 1; +pub const SIGTERM: ::size_t = 1; +pub const SIGHUP: ::size_t = 1; +pub const SIGQUIT: ::size_t = 1; +pub const NSIG: ::size_t = 2; + extern "C" { pub fn pthread_create( native: *mut ::pthread_t,