pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/digest/files Include stdint.h to use integer ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/9d58979e5367
branches: trunk
changeset: 530748:9d58979e5367
user: minskim <minskim%pkgsrc.org@localhost>
date: Sun Jul 08 05:09:09 2007 +0000
description:
Include stdint.h to use integer types such as uint32_t.
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 70a979412f94 -r 9d58979e5367 pkgtools/digest/files/md5.h
--- a/pkgtools/digest/files/md5.h Sat Jul 07 17:18:03 2007 +0000
+++ b/pkgtools/digest/files/md5.h Sun Jul 08 05:09:09 2007 +0000
@@ -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 -r 70a979412f94 -r 9d58979e5367 pkgtools/digest/files/rmd160.h
--- a/pkgtools/digest/files/rmd160.h Sat Jul 07 17:18:03 2007 +0000
+++ b/pkgtools/digest/files/rmd160.h Sun Jul 08 05:09:09 2007 +0000
@@ -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 -r 70a979412f94 -r 9d58979e5367 pkgtools/digest/files/sha1.h
--- a/pkgtools/digest/files/sha1.h Sat Jul 07 17:18:03 2007 +0000
+++ b/pkgtools/digest/files/sha1.h Sun Jul 08 05:09:09 2007 +0000
@@ -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 -r 70a979412f94 -r 9d58979e5367 pkgtools/digest/files/sha2.h
--- a/pkgtools/digest/files/sha2.h Sat Jul 07 17:18:03 2007 +0000
+++ b/pkgtools/digest/files/sha2.h Sun Jul 08 05:09:09 2007 +0000
@@ -36,6 +36,10 @@
#ifndef __SHA2_H__
#define __SHA2_H__
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
#ifdef __cplusplus
extern "C" {
#endif
diff -r 70a979412f94 -r 9d58979e5367 pkgtools/digest/files/tiger.h
--- a/pkgtools/digest/files/tiger.h Sat Jul 07 17:18:03 2007 +0000
+++ b/pkgtools/digest/files/tiger.h Sun Jul 08 05:09:09 2007 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index