From e586026d10da39d591a43474c63fce73deb8f0d9 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 9 Jan 2001 16:07:14 +0000 Subject: The KAME files md5.* and sha1.* have the following changelog entry: ---------------------------- revision 1.2 date: 2000/12/04 01:20:38; author: tgl; state: Exp; lines: +18 -18 Eliminate some of the more blatant platform-dependencies ... it builds here now, anyway ... ---------------------------- Which basically changes u_int*_t -> uint*_t, so now it does not compile neither under Debian 2.2 nor under NetBSD 1.5 which is platform independent all right. Also it replaces $KAME$ with $Id$ which is Bad Thing. PostgreSQL Id should be added as a separate line so the file history could be seen. So here is patch: * changes uint*_t -> uint*. I guess that was the original intention * adds uint64 type to include/c.h because its needed [somebody should check if I did it right] * adds back KAME Id, because KAME is the master repository * removes stupid c++ comments in pgcrypto.c * removes from the code, its not needed -- marko Marko Kreen --- src/include/c.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/include/c.h b/src/include/c.h index 4686de0919e..4f31cf2ecb9 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -8,7 +8,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: c.h,v 1.85 2000/11/03 18:43:52 petere Exp $ + * $Id: c.h,v 1.86 2001/01/09 16:07:14 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -277,13 +277,16 @@ typedef double float8; #ifdef HAVE_LONG_INT_64 /* Plain "long int" fits, use it */ typedef long int int64; +typedef unsigned long int uint64; #else #ifdef HAVE_LONG_LONG_INT_64 /* We have working support for "long long int", use that */ typedef long long int int64; +typedef unsigned long long int uint64; #else /* Won't actually work, but fall back to long int so that code compiles */ typedef long int int64; +typedef unsigned long int uint64; #define INT64_IS_BUSTED #endif #endif -- cgit v1.2.3