bash: Handle _SC_RTSIG_MAX not being defined

This commit is contained in:
kim 2022-10-04 12:45:31 +00:00
parent 67a692d70a
commit 73452c835e
2 changed files with 18 additions and 1 deletions

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.71 2022/10/03 12:50:27 wiz Exp $
$NetBSD: distinfo,v 1.72 2022/10/04 12:45:31 kim Exp $
BLAKE2s (bash-5.2.tar.gz) = 430755ea2af4903dba2bdbeffd4d861edb9f54c248071362f0d14f15171764cd
SHA512 (bash-5.2.tar.gz) = 5647636223ba336bf33e0c65e516d8ebcf6932de8b44f37bc468eedb87579c628ad44213f78534beb10f47aebb9c6fa670cb0bed3b4e7717e5faf7e9a1ef81ae
@ -9,5 +9,6 @@ SHA1 (patch-aj) = 2e4c15afd9b50d44967ee8e1f85bdc908c0eeeb0
SHA1 (patch-builtins_ulimit.def) = 1390069344607204eb3abbd6ddeb148ff590c55e
SHA1 (patch-configure) = c4e1ab53a1ee85f3e6121047f0aca8ceb85e6e5d
SHA1 (patch-examples_loadables_fdflags.c) = dce409c76b7d6c838eb25c3ccc7a89ee57ca69b8
SHA1 (patch-examples_loadables_getconf.c) = a71df9f54d77ee14de453b67bd4b3658ad7123eb
SHA1 (patch-lib_malloc_malloc.c) = 6e500228972eac0cb4d4defb02e9cf573b7fa207
SHA1 (patch-support_shobj-conf) = 010d5058262a23add420deed6c44a605bb16aa26

View file

@ -0,0 +1,16 @@
$NetBSD: patch-examples_loadables_getconf.c,v 1.1 2022/10/04 12:45:31 kim Exp $
Handle _SC_RTSIG_MAX not being defined (NetBSD 9)
--- examples/loadables/getconf.c.orig 2021-12-03 16:46:22.000000000 +0000
+++ examples/loadables/getconf.c 2022-10-04 12:38:07.370372821 +0000
@@ -846,7 +846,9 @@
#ifdef _SC_TRACE_LOG
{ "_POSIX_TRACE_LOG", _SC_TRACE_LOG, SYSCONF },
#endif
+#ifdef _SC_RTSIG_MAX
{ "RTSIG_MAX", _SC_RTSIG_MAX, SYSCONF },
+#endif
#ifdef _SC_SEM_NSEMS_MAX
{ "SEM_NSEMS_MAX", _SC_SEM_NSEMS_MAX, SYSCONF },
#endif