diff options
Diffstat (limited to 'security/sudo/patches/patch-lib_util_sig2str.c')
-rw-r--r-- | security/sudo/patches/patch-lib_util_sig2str.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/security/sudo/patches/patch-lib_util_sig2str.c b/security/sudo/patches/patch-lib_util_sig2str.c deleted file mode 100644 index 831d865c826..00000000000 --- a/security/sudo/patches/patch-lib_util_sig2str.c +++ /dev/null @@ -1,23 +0,0 @@ -$NetBSD: patch-lib_util_sig2str.c,v 1.1 2019/10/14 20:05:58 maya Exp $ - -Handle sysconf(_SC_RTSIG_MAX) not existing (netbsd): -just assume the static limits is good enough. - ---- lib/util/sig2str.c.orig 2019-10-10 16:33:03.000000000 +0000 -+++ lib/util/sig2str.c -@@ -65,6 +65,7 @@ sudo_sig2str(int signo, char *signame) - #if defined(SIGRTMIN) && defined(SIGRTMAX) - /* Realtime signal support. */ - if (signo >= SIGRTMIN && signo <= SIGRTMAX) { -+#ifdef _SC_RTSIG_MAX - const long rtmax = sysconf(_SC_RTSIG_MAX); - if (rtmax > 0) { - if (signo == SIGRTMIN) { -@@ -79,6 +80,7 @@ sudo_sig2str(int signo, char *signame) - (SIGRTMAX - signo)); - } - } -+#endif - return 0; - } - #endif |