diff options
author | obache <obache> | 2010-01-23 13:25:12 +0000 |
---|---|---|
committer | obache <obache> | 2010-01-23 13:25:12 +0000 |
commit | 3a23c361107879d558657e6ead46264b9b5e6a19 (patch) | |
tree | d97b0cc85aa18a4396a10d002476aaa031f1adff /pkgtools | |
parent | d41a66c6ff6cdab43d669079d9eb1b348428e3d6 (diff) | |
download | pkgsrc-3a23c361107879d558657e6ead46264b9b5e6a19.tar.gz |
Exactly include unistd.h for size_t (at least, need for Haiku).
Diffstat (limited to 'pkgtools')
-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 08892162ca9..e8ca6bbb809 100644 --- a/pkgtools/digest/files/md5.h +++ b/pkgtools/digest/files/md5.h @@ -1,4 +1,4 @@ -/* $NetBSD: md5.h,v 1.6 2007/09/21 18:44:36 joerg Exp $ */ +/* $NetBSD: md5.h,v 1.7 2010/01/23 13:25:12 obache Exp $ */ /* * This file is derived from the RSA Data Security, Inc. MD5 Message-Digest @@ -40,6 +40,10 @@ #include <stdint.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.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 aebb0e684df..badfe957ae8 100644 --- a/pkgtools/digest/files/rmd160.h +++ b/pkgtools/digest/files/rmd160.h @@ -1,4 +1,4 @@ -/* $NetBSD: rmd160.h,v 1.7 2007/09/21 18:44:37 joerg Exp $ */ +/* $NetBSD: rmd160.h,v 1.8 2010/01/23 13:25:12 obache Exp $ */ /********************************************************************\ * @@ -32,6 +32,10 @@ #include <stdint.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.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 c3373aef1b5..0199c878283 100644 --- a/pkgtools/digest/files/sha1.h +++ b/pkgtools/digest/files/sha1.h @@ -1,4 +1,4 @@ -/* $NetBSD: sha1.h,v 1.7 2007/09/21 18:44:37 joerg Exp $ */ +/* $NetBSD: sha1.h,v 1.8 2010/01/23 13:25:12 obache Exp $ */ /* * SHA-1 in C @@ -17,6 +17,10 @@ #include <stdint.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.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 9b76536ee4b..77d700e3733 100644 --- a/pkgtools/digest/files/sha2.h +++ b/pkgtools/digest/files/sha2.h @@ -44,6 +44,10 @@ #include <stdint.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + #ifdef __cplusplus extern "C" { #endif diff --git a/pkgtools/digest/files/tiger.h b/pkgtools/digest/files/tiger.h index 5bb9a7d1733..e00ab5576d3 100644 --- a/pkgtools/digest/files/tiger.h +++ b/pkgtools/digest/files/tiger.h @@ -1,4 +1,4 @@ -/* $NetBSD: tiger.h,v 1.5 2008/05/09 15:00:32 joerg Exp $ */ +/* $NetBSD: tiger.h,v 1.6 2010/01/23 13:25:12 obache Exp $ */ /* * Copyright © 2005 Alistair Crooks. All rights reserved. @@ -42,6 +42,10 @@ #include <stdint.h> #endif +#ifdef HAVE_UNISTD_H +#include <unistd.h> +#endif + typedef struct tiger_context_t { uint64_t ctx[3]; int first_time; |