HomeFreeBSD

textproc/augeas: fix build with clang 15

Description

textproc/augeas: fix build with clang 15

During an exp-run for llvm 15 (see bug 265425), it turned out that
textproc/augeas failed to build with clang 15:

internal.c:436:12: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'const char *' [-Wint-conversion]
    return strerror_r(errnum, buf, len);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

This is because the GNU variant of strerror_r() is erroneously chosen.
Use the BSD variant instead.

PR: 268231
Approved by: romain (maintainer)
MFH: 2022Q4

Details

Provenance
dimAuthored on Dec 7 2022, 4:45 PM
Parents
R11:2624cb3dcfc2: textproc/raptor2: fix build with clang 15
Branches
Unknown
Tags
Unknown