From e9fee70edb53f2e17201a48ac6dc5f86877d19cc Mon Sep 17 00:00:00 2001 From: tevzi2 Date: Sun, 14 Apr 2024 19:25:16 +0200 Subject: [PATCH] Add SIGABRT const to newlib (apply to `main`) (cherry picked from commit 47a8927f197dd067a2c5696c97c84120b812a5e3) --- src/unix/newlib/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 45a2668aac71a..2357ea8cb2e1b 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -508,6 +508,8 @@ pub const SOCK_CLOEXEC: ::c_int = O_CLOEXEC; pub const INET_ADDRSTRLEN: ::c_int = 16; +pub const SIGABRT: ::c_int = 1; + // https://github.com/bminor/newlib/blob/HEAD/newlib/libc/sys/linux/include/net/if.h#L121 pub const IFF_UP: ::c_int = 0x1; // interface is up pub const IFF_BROADCAST: ::c_int = 0x2; // broadcast address valid