[Bug 268231] textproc/augeas: fix build with clang 15

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 07 Dec 2022 16:50:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268231

            Bug ID: 268231
           Summary: textproc/augeas: fix build with clang 15
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: puppet@FreeBSD.org
          Reporter: dim@FreeBSD.org
          Assignee: puppet@FreeBSD.org
             Flags: maintainer-feedback?(puppet@FreeBSD.org)

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.