Subject: gnupg 1.2.3 build fails on NetBSD 1.5.x
To: None <tech-pkg@NetBSD.org>
From: Klaus Heinz <k.heinz.okt.drei@onlinehome.de>
List: tech-pkg
Date: 10/29/2003 01:37:02
Hi,
gnupg 1.2.3 assumes that systems with uint64_t, like NetBSD 1.5.x, also
have UINT64_C which is not the case for NetBSD 1.5.x.
Does anyone have a better idea for a workaround than this?
--- include/types.h.orig Wed Jul 30 09:44:43 2003
+++ include/types.h
@@ -101,7 +101,7 @@ typedef unsigned long u32;
*/
#ifndef HAVE_U64_TYPEDEF
#undef u64 /* maybe there is a macro with this name */
-#if SIZEOF_UINT64_T == 8
+#if (SIZEOF_UINT64_T == 8) && defined (__NetBSD_Version__) && (__NetBSD_Version __ >= 106000000)
typedef uint64_t u64;
#define U64_C(c) (UINT64_C(c))
#define HAVE_U64_TYPEDEF
ciao
Klaus