diff options
author | minskim <minskim@pkgsrc.org> | 2007-07-08 05:09:09 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2007-07-08 05:09:09 +0000 |
commit | 30720001b07ee804225575e04ce84f6e8adff16f (patch) | |
tree | c6e5111aeef503d665f50c3848d585164e10c54f /pkgtools/digest | |
parent | ef4d18608c023658db82f50ffb0ad4592010bcce (diff) | |
download | pkgsrc-30720001b07ee804225575e04ce84f6e8adff16f.tar.gz |
Include stdint.h to use integer types such as uint32_t.
Diffstat (limited to 'pkgtools/digest')
-rw-r--r-- | pkgtools/digest/files/md5.h | 6 | ||||
-rw-r--r-- | pkgtools/digest/files/rmd160.h | 6 | ||||
-rw-r--r-- | pkgtools/digest/files/sha1.h | 6 | ||||
-rw-r--r-- | pkgtools/digest/files/sha2.h | 4 | ||||
-rw-r--r-- | pkgtools/digest/files/tiger.h | 6 |
5 files changed, 24 insertions, 4 deletions
diff --git a/pkgtools/digest/files/md5.h b/pkgtools/digest/files/md5.h index 2eba1dfd3c5..c5224ca43fc 100644 --- a/pkgtools/digest/files/md5.h +++ b/pkgtools/digest/files/md5.h @@ -1,4 +1,4 @@ -/* $NetBSD: md5.h,v 1.3 2007/07/03 18:54:03 joerg Exp $ */ +/* $NetBSD: md5.h,v 1.4 2007/07/08 05:09:09 minskim Exp $ */ /* * This file is derived from the RSA Data Security, Inc. MD5 Message-Digest @@ -32,6 +32,10 @@ #ifndef _SYS_MD5_H_ #define _SYS_MD5_H_ +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + /* MD5 context. */ typedef struct MD5Context { uint32_t state[4]; /* state (ABCD) */ diff --git a/pkgtools/digest/files/rmd160.h b/pkgtools/digest/files/rmd160.h index 688e0094e67..2861db53366 100644 --- a/pkgtools/digest/files/rmd160.h +++ b/pkgtools/digest/files/rmd160.h @@ -1,4 +1,4 @@ -/* $NetBSD: rmd160.h,v 1.3 2007/07/03 18:54:04 joerg Exp $ */ +/* $NetBSD: rmd160.h,v 1.4 2007/07/08 05:09:09 minskim Exp $ */ /********************************************************************\ * @@ -24,6 +24,10 @@ #ifndef _RMD160_H_ #define _RMD160_H_ +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + typedef struct { uint32_t state[5]; /* state (ABCDE) */ uint32_t length[2]; /* number of bits */ diff --git a/pkgtools/digest/files/sha1.h b/pkgtools/digest/files/sha1.h index 4f9fca9b069..e6a8bfbd1cb 100644 --- a/pkgtools/digest/files/sha1.h +++ b/pkgtools/digest/files/sha1.h @@ -1,4 +1,4 @@ -/* $NetBSD: sha1.h,v 1.3 2007/07/03 18:54:05 joerg Exp $ */ +/* $NetBSD: sha1.h,v 1.4 2007/07/08 05:09:09 minskim Exp $ */ /* * SHA-1 in C @@ -9,6 +9,10 @@ #ifndef _SYS_SHA1_H_ #define _SYS_SHA1_H_ +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + typedef struct { uint32_t state[5]; uint32_t count[2]; diff --git a/pkgtools/digest/files/sha2.h b/pkgtools/digest/files/sha2.h index 082e49e1590..4d4b60b8464 100644 --- a/pkgtools/digest/files/sha2.h +++ b/pkgtools/digest/files/sha2.h @@ -36,6 +36,10 @@ #ifndef __SHA2_H__ #define __SHA2_H__ +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + #ifdef __cplusplus extern "C" { #endif diff --git a/pkgtools/digest/files/tiger.h b/pkgtools/digest/files/tiger.h index 055c5827610..0f5de62dc3f 100644 --- a/pkgtools/digest/files/tiger.h +++ b/pkgtools/digest/files/tiger.h @@ -1,4 +1,4 @@ -/* $NetBSD: tiger.h,v 1.1 2005/03/22 10:16:15 agc Exp $ */ +/* $NetBSD: tiger.h,v 1.2 2007/07/08 05:09:10 minskim Exp $ */ /* * Copyright © 2005 Alistair Crooks. All rights reserved. @@ -34,6 +34,10 @@ #ifndef TIGER_H_ #define TIGER_H_ +#ifdef HAVE_STDINT_H +#include <stdint.h> +#endif + typedef struct tiger_context_t { uint64_t ctx[3]; } tiger_context_t; |