Skip to content

Commit

Permalink
Fix macOS build with zstd-1.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-neara authored and FrancescAlted committed Feb 22, 2025
1 parent 4c5e7a2 commit bafa95d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal-complibs/zstd-1.5.7/dictBuilder/cover.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
#endif
#endif

#if defined(__APPLE__)
#undef _XOPEN_SOURCE /* Needed for qsort_r on macOS */
#endif

#include <stdio.h> /* fprintf */
#include <stdlib.h> /* malloc, free, qsort_r */

Expand Down

0 comments on commit bafa95d

Please sign in to comment.