Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/hash/rmd160 On big endian machines needs to ...



details:   https://anonhg.NetBSD.org/src/rev/4042395174cd
branches:  trunk
changeset: 807601:4042395174cd
user:      justin <justin%NetBSD.org@localhost>
date:      Wed Apr 15 08:31:05 2015 +0000

description:
On big endian machines needs to include sys/endian.h for le32dec

Mainly affects cross builds on big endian; tested on FreeBSD mips
and Linux ppc.

diffstat:

 common/lib/libc/hash/rmd160/rmd160.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r f3ccdbd50baa -r 4042395174cd common/lib/libc/hash/rmd160/rmd160.c
--- a/common/lib/libc/hash/rmd160/rmd160.c      Wed Apr 15 05:40:48 2015 +0000
+++ b/common/lib/libc/hash/rmd160/rmd160.c      Wed Apr 15 08:31:05 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rmd160.c,v 1.5 2009/08/21 09:40:51 skrll Exp $ */
+/*     $NetBSD: rmd160.c,v 1.6 2015/04/15 08:31:05 justin Exp $ */
 /*     $KAME: rmd160.c,v 1.2 2003/07/25 09:37:55 itojun Exp $  */
 /*     $OpenBSD: rmd160.c,v 1.3 2001/09/26 21:40:13 markus Exp $       */
 /*
@@ -33,14 +33,14 @@
 #include <sys/cdefs.h>
 
 #if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: rmd160.c,v 1.5 2009/08/21 09:40:51 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rmd160.c,v 1.6 2015/04/15 08:31:05 justin Exp $");
 
 #include <lib/libkern/libkern.h>
 
 #else
 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: rmd160.c,v 1.5 2009/08/21 09:40:51 skrll Exp $");
+__RCSID("$NetBSD: rmd160.c,v 1.6 2015/04/15 08:31:05 justin Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -49,6 +49,7 @@
 
 #endif
 
+#include <sys/endian.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <sys/rmd160.h>



Home | Main Index | Thread Index | Old Index