Subject: CVS commit: pkgsrc/textproc/nbsed
From: David H. Gutteridge
Date: 2024-03-20 21:37:28
Message id: 20240320203728.173FFFA2C@cvs.NetBSD.org

Log Message:
nbsed: fix building on operating systems that don't have errc(3)

One of the simplest ways of addressing this is to switch to errx(3). It
seems unclear what the absolute minimums are for C compilers required
for bootstrap, and EILSEQ wasn't codified until the 1994 Normative
Amendment 1 to C89, so its value (per NetBSD) is hard-coded here, too.

This introduces a small diff to upstream, but seems safer than altering
libnbcompat this close to a quarterly branch freeze. (There are also
some questions about libnbcompat's current state to be added to a PR.)

Relates to PR pkg/57970.

Tested on Fedora Linux 39, which was previously broken.

Files:
RevisionActionfile
1.28modifypkgsrc/textproc/nbsed/Makefile
1.9modifypkgsrc/textproc/nbsed/files/compile.c