1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Fix MD5 code on 64 bit platforms

- While here, use SF macro

PR:		134406
Submitted by:	"James E. Flemer" <jflemer at alum dot rpi dot edu> (maintainer)
This commit is contained in:
Dmitry Marakasov 2009-05-10 16:24:04 +00:00
parent 8006488985
commit 17f3d4c9ac
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=233585
2 changed files with 24 additions and 3 deletions

View File

@ -7,10 +7,9 @@
PORTNAME= docsis
PORTVERSION= 0.9.5
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MASTER_SITES= SF
MAINTAINER= jflemer@alum.rpi.edu
COMMENT= DOCSIS(tm) binary configuration file encoder/decoder

View File

@ -0,0 +1,22 @@
# $FreeBSD$
--- src/md5.h.orig 2004-03-17 07:09:31.000000000 -0800
+++ src/md5.h 2009-05-07 19:41:20.000000000 -0700
@@ -22,14 +22,16 @@
documentation and/or software.
*/
+#include <stdint.h>
+
/* POINTER defines a generic pointer type */
typedef unsigned char *POINTER;
/* UINT2 defines a two byte word */
-typedef unsigned short int UINT2;
+typedef uint16_t UINT2;
/* UINT4 defines a four byte word */
-typedef unsigned long int UINT4;
+typedef uint32_t UINT4;
/* MD5 context. */
typedef struct {