Skip to content

Commit 0017ed4

Browse files
committed
[BUILD] Remove deprecated sys_siglist to avoid build failure with GLIBC2.35.
1 parent 243a667 commit 0017ed4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

serving/third_party/libapr1.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,3 +1872,16 @@ diff -urN include/private/apr_escape_test_char.h libapr/include/private/apr_esca
18721872
+ 222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,
18731873
+ 222,222,222,222,222,222,222,222,222,222,222,222,222,222,222,222
18741874
+};
1875+
diff --git a/threadproc/unix/signals.c b/threadproc/unix/signals.c
1876+
index 57a31af..20ca5ae 100644
1877+
--- a/threadproc/unix/signals.c
1878+
+++ b/threadproc/unix/signals.c
1879+
@@ -116,7 +116,7 @@ void apr_signal_init(apr_pool_t *pglobal)
1880+
}
1881+
const char *apr_signal_description_get(int signum)
1882+
{
1883+
- return (signum >= 0) ? sys_siglist[signum] : "unknown signal (number)";
1884+
+ return (signum >= 0) ? strsignal(signum) : "unknown signal (number)";
1885+
}
1886+
1887+
#else /* !(SYS_SIGLIST_DECLARED || HAVE_DECL_SYS_SIGLIST) */

0 commit comments

Comments
 (0)