[BACK]Return to patch-lib_strerror_override.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / m4 / patches

File: [cvs.NetBSD.org] / pkgsrc / devel / m4 / patches / patch-lib_strerror_override.c (download)

Revision 1.2, Mon Jun 28 18:30:57 2021 UTC (6 months, 3 weeks ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, HEAD
Changes since 1.1: +3 -1 lines

m4: update to 1.4.19.

* Noteworthy changes in release 1.4.19 (2021-05-28) [stable]

** A number of portability improvements inherited from gnulib, including
   the ability to perform stack overflow detection on more platforms
   without linking to GNU libsigsegv.

* Noteworthy changes in release 1.4.18d (2021-05-11) [beta]

** A number of portability improvements inherited from gnulib.


* Noteworthy changes in release 1.4.18b (2021-05-07) [beta]

** The symbol hash table now defaults to 65537 buckets instead of 509, as
   modern systems have enough memory to benefit from fewer hash collisions
   by default.

** Introduce the use of gettext, with the immediate benefit of nicer
   UTF-8 author names.  Over time, more translations of program messages
   will become available.

** A number of portability improvements inherited from gnulib.

$NetBSD: patch-lib_strerror_override.c,v 1.2 2021/06/28 18:30:57 wiz Exp $

Fix build on QNX.

--- lib/strerror-override.c.orig	2016-12-31 13:54:42.000000000 +0000
+++ lib/strerror-override.c
@@ -29,6 +29,8 @@
 # endif
 #endif
 
+/* strerror_override.h might define it to NULL. */
+#ifndef strerror_override
 /* If ERRNUM maps to an errno value defined by gnulib, return a string
    describing the error.  Otherwise return NULL.  */
 const char *
@@ -300,3 +302,4 @@ strerror_override (int errnum)
       return NULL;
     }
 }
+#endif