void-packages/srcpkgs/perl-Crypt-Rijndael/patches/use-stdint_h.patch

15 lines
367 B
Diff

--- rijndael.h
+++ rijndael.h
@@ -72,6 +72,11 @@
typedef u_char UINT8;
#endif
+#include <stdint.h>
+#define _CRYPT_RIJNDAEL_H_TYPES
+typedef uint32_t UINT32;
+typedef uint8_t UINT8;
+
/* I expect this to be the usual case */
#if ! defined(_CRYPT_RIJNDAEL_H_TYPES) && ( defined(_SYS_TYPES_H) || defined(_SYS_TYPES_H_) )
#define _CRYPT_RIJNDAEL_H_TYPES