]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
include: move several missing definitions to musl
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 May 2026 15:54:26 +0000 (00:54 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 20 May 2026 18:51:26 +0000 (03:51 +0900)
Those moved ones have been defined in glibc <= 2.34, and only
necessary when built with musl.

Follow-up for c8c1bcf1941047d1fe43d9827ad4826b4620297a.

src/include/musl/signal.h [new file with mode: 0644]
src/include/override/signal.h

diff --git a/src/include/musl/signal.h b/src/include/musl/signal.h
new file mode 100644 (file)
index 0000000..c69a3b2
--- /dev/null
@@ -0,0 +1,28 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include_next <signal.h>        /* IWYU pragma: export */
+
+#ifndef ILL_BADIADDR
+#define ILL_BADIADDR 9
+#endif
+
+#ifndef FPE_FLTUNK
+#define FPE_FLTUNK 14
+#endif
+
+#ifndef FPE_CONDTRAP
+#define FPE_CONDTRAP 15
+#endif
+
+#ifndef SEGV_ACCADI
+#define SEGV_ACCADI 5
+#endif
+
+#ifndef SEGV_ADIDERR
+#define SEGV_ADIDERR 6
+#endif
+
+#ifndef SEGV_ADIPERR
+#define SEGV_ADIPERR 7
+#endif
index 64ddacc4c9dc04df2f796bcb4cb6baae14cf0df2..b6a6a9ce31a9f4b20fc6b7125c8c0feea5cfa77e 100644 (file)
@@ -3,30 +3,6 @@
 
 #include_next <signal.h>        /* IWYU pragma: export */
 
-#ifndef ILL_BADIADDR
-#define ILL_BADIADDR 9
-#endif
-
-#ifndef FPE_FLTUNK
-#define FPE_FLTUNK 14
-#endif
-
-#ifndef FPE_CONDTRAP
-#define FPE_CONDTRAP 15
-#endif
-
-#ifndef SEGV_ACCADI
-#define SEGV_ACCADI 5
-#endif
-
-#ifndef SEGV_ADIDERR
-#define SEGV_ADIDERR 6
-#endif
-
-#ifndef SEGV_ADIPERR
-#define SEGV_ADIPERR 7
-#endif
-
 /* Defined since glibc-2.39. */
 #ifndef SEGV_CPERR
 #define SEGV_CPERR 10