That's brilliant, thank you :) Makes sense to do it there rather than an #ifdef in the file. I've updated the Nix derivation accordingly.
Fast response much appreciated, Sirio ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Sunday, May 17, 2020 12:45 AM, Guillem Jover <guil...@debian.org> wrote: > Hi! > > On Wed, 2020-05-13 at 18:11:00 +0000, Sirio Balmelli wrote: > > > Subject: [PATCH] i18n.c: add dependency on xlocale.h for DarwinBSD > > > Fixes build failures starting with: > > > > i18n.c:27:8: error: unknown type name 'locale_t' > > > > > > Signed-off-by: Sirio Balmelli si...@b-ad.ch > > Thanks for the report and patch! I've fixed this instead by checking > for the availability of the header: > > https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=2261027 > > Regards, > Guillem