Link [ pkgsrc | NetBSD | pkgsrc git mirror | PR fulltext-search | netbsd commit viewer ]


   
        usage: [branch:branch] [user:user] [path[@revision]] keyword [... [-excludekeyword [...]]] (e.g. branch:MAIN pkgtools/pkg)




switch to index mode

recent branches: MAIN (6h)  pkgsrc-2024Q1 (9d)  pkgsrc-2023Q4 (56d)  pkgsrc-2023Q2 (88d)  pkgsrc-2023Q3 (168d) 

2024-05-27 02:31:12 UTC Now

2024-03-20 20:37:28 UTC MAIN commitmail json YAML

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.

(gutteridge)