Skip to content

Commit

Permalink
Fix compilation on NetBSD (#760)
Browse files Browse the repository at this point in the history
NetBSD has wcstombs_l(), but it does not have
uselocale().

Co-authored-by: Jennifer (Jenny) Bryan <[email protected]>
  • Loading branch information
gaborcsardi and jennybc authored Feb 26, 2025
1 parent 70099c0 commit 98c8ec8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/unix/config-unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@

/* Define to 1 if you have the 'wcstombs_l' function. */
/* #undef HAVE_WCSTOMBS_L */
#ifdef __NetBSD__
#define HAVE_WCSTOMBS_L 1
#endif

/* Define to 1 if you have the <xlocale.h> header file. */
/* #undef HAVE_XLOCALE_H */
Expand Down

0 comments on commit 98c8ec8

Please sign in to comment.