summaryrefslogtreecommitdiff
path: root/security/ruby-bcrypt_pbkdf/patches/patch-ext_mri_blf.h
blob: 307e6d5f61c6280845e4609b241075d86e8bf9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ext_mri_blf.h,v 1.1 2018/10/19 17:03:10 jperkin Exp $

u_int*_t compat.

--- ext/mri/blf.h.orig	2018-10-19 17:00:01.930246543 +0000
+++ ext/mri/blf.h
@@ -49,6 +49,16 @@
 #define BLF_MAXKEYLEN ((BLF_N-2)*4)	/* 448 bits */
 #define BLF_MAXUTILIZED ((BLF_N+2)*4)	/* 576 bits */
 
+#ifndef u_int8_t
+#define u_int8_t	uint8_t
+#endif
+#ifndef u_int16_t
+#define u_int16_t	uint16_t
+#endif
+#ifndef u_int32_t
+#define u_int32_t	uint32_t
+#endif
+
 /* Blowfish context */
 typedef struct BlowfishContext {
 	u_int32_t S[4][256];	/* S-Boxes */