1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Add a patch ensuring uint32_t is used, where a 32-bit unsigned

integer is implied. This fixes RIPEMD128 on Sparc64 and AMD64, as
well as HAVAL on AMD64.  HAVAL on Sparc64 remains broken due,
apparently, to an endiannes issue, which, for now, escapes my
understanding.

Unbreak on amd64.
This commit is contained in:
Mikhail Teterin 2004-07-12 15:42:42 +00:00
parent 3ed9a01649
commit 488f32774f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113475
2 changed files with 34 additions and 2 deletions

View File

@ -22,7 +22,6 @@ BUILD_DEPENDS= tclsh${TCL_VER}:${PORTSDIR}/lang/tcl${TCL_VER:S/.//} \
USE_BZIP2= yes
ALL_TARGET= all test
#MAKE_ARGS+= -j2
TCL_VER?= 8.4
DDIR= ${PREFIX}/lib/tcl${TCL_VER}/Trf
@ -83,7 +82,7 @@ post-install:
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64" || ${ARCH} == "amd64"
.if ${ARCH} == "sparc64"
BROKEN= "Fails testsuite during build"
.endif

View File

@ -0,0 +1,33 @@
--- generic/haval.1996/haval.h Fri Jul 11 12:07:36 1997
+++ generic/haval.1996/haval.h Sun Jul 11 13:43:41 2004
@@ -47,9 +47,6 @@
*/
-#ifdef __alpha /* aku, Sep 23, 1996 */
-typedef unsigned int haval_word; /* a HAVAL word = 32 bits */
-#else
-typedef unsigned long int haval_word; /* a HAVAL word = 32 bits */
-#endif
+#include <sys/types.h>
+typedef uint32_t haval_word; /* a HAVAL word = 32 bits */
typedef struct {
--- generic/ripemd/rmd128.h Mon May 19 16:53:18 1997
+++ generic/ripemd/rmd128.h Sun Jul 11 13:48:54 2004
@@ -33,12 +33,8 @@
/* adapt these, if necessary,
for your operating system and compiler */
+#include <sys/types.h>
-typedef unsigned char byte; /* unsigned 8-bit type */
-typedef unsigned short word; /* unsigned 16-bit type */
-
-#ifdef __alpha
-typedef unsigned int dword; /* unsigned 32-bit integer (AXP) */
-#else
-typedef unsigned long dword; /* unsigned 32-bit type */
-#endif
+typedef uint8_t byte; /* unsigned 8-bit type */
+typedef uint16_t word; /* unsigned 16-bit type */
+typedef uint32_t dword; /* unsigned 32-bit type */
/********************************************************************/