[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.1, Sat Aug 29 21:39:14 2020 UTC (16 months, 3 weeks ago) by js
Branch: MAIN
CVS Tags: pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3

devel/m4: Fix compilation on QNX

$NetBSD: patch-lib_strerror_override.c,v 1.1 2020/08/29 21:39:14 js Exp $

--- 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