diff options
author | Bruce Momjian <bruce@momjian.us> | 2001-01-09 16:07:14 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2001-01-09 16:07:14 +0000 |
commit | e586026d10da39d591a43474c63fce73deb8f0d9 (patch) | |
tree | b08531587b1a8b4741692c2d34c41ef69658e426 /src | |
parent | f906597e50ae633556c978f72e67e6c61b6e554d (diff) | |
download | postgresql-e586026d10da39d591a43474c63fce73deb8f0d9.tar.gz postgresql-e586026d10da39d591a43474c63fce73deb8f0d9.zip |
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<B8> 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 <sys/types.h> from the code, its not needed
--
marko
Marko Kreen
Diffstat (limited to 'src')
-rw-r--r-- | src/include/c.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 |