pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/digest/files Exactly include unistd.h for siz...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/1ab3a8dcb25e
branches:  trunk
changeset: 570025:1ab3a8dcb25e
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat Jan 23 13:25:12 2010 +0000

description:
Exactly include unistd.h for size_t (at least, need for Haiku).

diffstat:

 pkgtools/digest/files/md5.h    |  6 +++++-
 pkgtools/digest/files/rmd160.h |  6 +++++-
 pkgtools/digest/files/sha1.h   |  6 +++++-
 pkgtools/digest/files/sha2.h   |  4 ++++
 pkgtools/digest/files/tiger.h  |  6 +++++-
 5 files changed, 24 insertions(+), 4 deletions(-)

diffs (94 lines):

diff -r 9c12becf8f35 -r 1ab3a8dcb25e pkgtools/digest/files/md5.h
--- a/pkgtools/digest/files/md5.h       Sat Jan 23 13:24:32 2010 +0000
+++ b/pkgtools/digest/files/md5.h       Sat Jan 23 13:25:12 2010 +0000
@@ -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 -r 9c12becf8f35 -r 1ab3a8dcb25e pkgtools/digest/files/rmd160.h
--- a/pkgtools/digest/files/rmd160.h    Sat Jan 23 13:24:32 2010 +0000
+++ b/pkgtools/digest/files/rmd160.h    Sat Jan 23 13:25:12 2010 +0000
@@ -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 -r 9c12becf8f35 -r 1ab3a8dcb25e pkgtools/digest/files/sha1.h
--- a/pkgtools/digest/files/sha1.h      Sat Jan 23 13:24:32 2010 +0000
+++ b/pkgtools/digest/files/sha1.h      Sat Jan 23 13:25:12 2010 +0000
@@ -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 -r 9c12becf8f35 -r 1ab3a8dcb25e pkgtools/digest/files/sha2.h
--- a/pkgtools/digest/files/sha2.h      Sat Jan 23 13:24:32 2010 +0000
+++ b/pkgtools/digest/files/sha2.h      Sat Jan 23 13:25:12 2010 +0000
@@ -44,6 +44,10 @@
 #include <stdint.h>
 #endif
 
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif
diff -r 9c12becf8f35 -r 1ab3a8dcb25e pkgtools/digest/files/tiger.h
--- a/pkgtools/digest/files/tiger.h     Sat Jan 23 13:24:32 2010 +0000
+++ b/pkgtools/digest/files/tiger.h     Sat Jan 23 13:25:12 2010 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index