Skip to content

Commit 20cee56

Browse files
committed
compat: Fix sha256 on Dragonfly at least
1 parent 9c69fb3 commit 20cee56

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

compat/crypt/sha256.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@
2424
* SUCH DAMAGE.
2525
*/
2626

27-
#include <inttypes.h>
27+
/* For BSD */
28+
#if (defined(__unix__) || defined(unix)) && !defined(USG)
29+
#include <sys/param.h>
30+
#endif
2831

32+
#include <inttypes.h>
2933
#include <string.h>
3034

3135
#ifdef __GLIBC__

0 commit comments

Comments
 (0)