summaryrefslogtreecommitdiff
path: root/pkgtools/digest
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2007-08-02 13:54:34 +0000
committerjoerg <joerg@pkgsrc.org>2007-08-02 13:54:34 +0000
commit5122a367fd657a7f44da741138abfa076106abff (patch)
treec998d75bce7f0369dd99618d0cba8620a1294477 /pkgtools/digest
parent54c73abd6dc6de5d8965c52f8e1a72b6682ca325 (diff)
downloadpkgsrc-5122a367fd657a7f44da741138abfa076106abff.tar.gz
Include inttypes.h if it exists. Fixes issues on OSF/1 as reported
by tnn@.
Diffstat (limited to 'pkgtools/digest')
-rw-r--r--pkgtools/digest/files/md5.h6
-rw-r--r--pkgtools/digest/files/rmd160.h6
-rw-r--r--pkgtools/digest/files/sha1.h6
-rw-r--r--pkgtools/digest/files/sha2.h4
-rw-r--r--pkgtools/digest/files/tiger.h6
-rw-r--r--pkgtools/digest/files/whirlpool.c3
6 files changed, 27 insertions, 4 deletions
diff --git a/pkgtools/digest/files/md5.h b/pkgtools/digest/files/md5.h
index c5224ca43fc..96bdab52080 100644
--- a/pkgtools/digest/files/md5.h
+++ b/pkgtools/digest/files/md5.h
@@ -1,4 +1,4 @@
-/* $NetBSD: md5.h,v 1.4 2007/07/08 05:09:09 minskim Exp $ */
+/* $NetBSD: md5.h,v 1.5 2007/08/02 13:54:34 joerg 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_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
diff --git a/pkgtools/digest/files/rmd160.h b/pkgtools/digest/files/rmd160.h
index 2861db53366..4bb3e7a987f 100644
--- a/pkgtools/digest/files/rmd160.h
+++ b/pkgtools/digest/files/rmd160.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rmd160.h,v 1.4 2007/07/08 05:09:09 minskim Exp $ */
+/* $NetBSD: rmd160.h,v 1.5 2007/08/02 13:54:34 joerg Exp $ */
/********************************************************************\
*
@@ -24,6 +24,10 @@
#ifndef _RMD160_H_
#define _RMD160_H_
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
diff --git a/pkgtools/digest/files/sha1.h b/pkgtools/digest/files/sha1.h
index e6a8bfbd1cb..0921e1ad3a5 100644
--- a/pkgtools/digest/files/sha1.h
+++ b/pkgtools/digest/files/sha1.h
@@ -1,4 +1,4 @@
-/* $NetBSD: sha1.h,v 1.4 2007/07/08 05:09:09 minskim Exp $ */
+/* $NetBSD: sha1.h,v 1.5 2007/08/02 13:54:34 joerg Exp $ */
/*
* SHA-1 in C
@@ -9,6 +9,10 @@
#ifndef _SYS_SHA1_H_
#define _SYS_SHA1_H_
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
diff --git a/pkgtools/digest/files/sha2.h b/pkgtools/digest/files/sha2.h
index 4d4b60b8464..1c41e6039bc 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_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
diff --git a/pkgtools/digest/files/tiger.h b/pkgtools/digest/files/tiger.h
index 0f5de62dc3f..8c1dd2e7f52 100644
--- a/pkgtools/digest/files/tiger.h
+++ b/pkgtools/digest/files/tiger.h
@@ -1,4 +1,4 @@
-/* $NetBSD: tiger.h,v 1.2 2007/07/08 05:09:10 minskim Exp $ */
+/* $NetBSD: tiger.h,v 1.3 2007/08/02 13:54:34 joerg Exp $ */
/*
* Copyright © 2005 Alistair Crooks. All rights reserved.
@@ -34,6 +34,10 @@
#ifndef TIGER_H_
#define TIGER_H_
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
+
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
diff --git a/pkgtools/digest/files/whirlpool.c b/pkgtools/digest/files/whirlpool.c
index 602ea9a8e55..57216c6039d 100644
--- a/pkgtools/digest/files/whirlpool.c
+++ b/pkgtools/digest/files/whirlpool.c
@@ -62,6 +62,9 @@
#include <errno.h>
#include <fcntl.h>
+#ifdef HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif