Subject: CVS commit: pkgsrc/textproc/libxml2
From: Sijmen J. Mulder
Date: 2024-01-27 22:07:16
Message id: 20240127210716.AF90AFA42@cvs.NetBSD.org

Log Message:
textproc/libxml2: Fix undefined addrinfo on glibc

On Fedora 39 (only with IPv6 enabled):

  nanoftp.c: In function 'xmlNanoFTPConnect':
  nanoftp.c:798:25: error: storage size of 'hints' isn't known
    798 |         struct addrinfo hints, *tmp, *result;
        |                         ^~~~~

netdb.h and GNU's getaddrinfo(3) show that it's behind a feature macro:

  _POSIX_C_SOURCE >= 200112L

Tested on Fedora 39 and NetBSD 9.

Files:
RevisionActionfile
1.178modifypkgsrc/textproc/libxml2/Makefile