Skip to content

Commit

Permalink
Fix compilation on NetBSD
Browse files Browse the repository at this point in the history
NetBSD has wcstombs_l(), but it does not have
uselocale().
  • Loading branch information
gaborcsardi committed Oct 25, 2024
1 parent 1eb64a7 commit 8231601
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 @@ -52,6 +52,9 @@
#define HAVE_WCHAR_H 1

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

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

0 comments on commit 8231601

Please sign in to comment.