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 inttypes.h if it exists....



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fa0b50d11a81
branches:  trunk
changeset: 531575:fa0b50d11a81
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 02 13:54:34 2007 +0000

description:
Include inttypes.h if it exists. Fixes issues on OSF/1 as reported
by tnn@.

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 +++++-
 pkgtools/digest/files/whirlpool.c |  3 +++
 6 files changed, 27 insertions(+), 4 deletions(-)

diffs (107 lines):

diff -r 37f98e1ece0e -r fa0b50d11a81 pkgtools/digest/files/md5.h
--- a/pkgtools/digest/files/md5.h       Thu Aug 02 13:43:32 2007 +0000
+++ b/pkgtools/digest/files/md5.h       Thu Aug 02 13:54:34 2007 +0000
@@ -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 -r 37f98e1ece0e -r fa0b50d11a81 pkgtools/digest/files/rmd160.h
--- a/pkgtools/digest/files/rmd160.h    Thu Aug 02 13:43:32 2007 +0000
+++ b/pkgtools/digest/files/rmd160.h    Thu Aug 02 13:54:34 2007 +0000
@@ -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 -r 37f98e1ece0e -r fa0b50d11a81 pkgtools/digest/files/sha1.h
--- a/pkgtools/digest/files/sha1.h      Thu Aug 02 13:43:32 2007 +0000
+++ b/pkgtools/digest/files/sha1.h      Thu Aug 02 13:54:34 2007 +0000
@@ -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 -r 37f98e1ece0e -r fa0b50d11a81 pkgtools/digest/files/sha2.h
--- a/pkgtools/digest/files/sha2.h      Thu Aug 02 13:43:32 2007 +0000
+++ b/pkgtools/digest/files/sha2.h      Thu Aug 02 13:54:34 2007 +0000
@@ -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 -r 37f98e1ece0e -r fa0b50d11a81 pkgtools/digest/files/tiger.h
--- a/pkgtools/digest/files/tiger.h     Thu Aug 02 13:43:32 2007 +0000
+++ b/pkgtools/digest/files/tiger.h     Thu Aug 02 13:54:34 2007 +0000
@@ -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 -r 37f98e1ece0e -r fa0b50d11a81 pkgtools/digest/files/whirlpool.c
--- a/pkgtools/digest/files/whirlpool.c Thu Aug 02 13:43:32 2007 +0000
+++ b/pkgtools/digest/files/whirlpool.c Thu Aug 02 13:54:34 2007 +0000
@@ -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



Home | Main Index | Thread Index | Old Index