summaryrefslogtreecommitdiff
path: root/security/gnupg/patches/patch-ak
blob: dc2416faa25740b6eca03ec5703db8e874724053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-ak,v 1.3 2006/04/04 21:16:37 wiz Exp $

--- include/types.h.orig	2005-07-27 17:02:56.000000000 +0000
+++ include/types.h
@@ -104,7 +104,12 @@ typedef unsigned long u32;
 #undef u64	    /* maybe there is a macro with this name */
 #if SIZEOF_UINT64_T == 8
 typedef uint64_t u64;
+#ifdef UINT64_C
 #define U64_C(c) (UINT64_C(c))
+#else
+	/* make a best guess, could happen with UNIX98 <inttypes.h> */
+#define U64_C(c) (c)
+#endif
 #define HAVE_U64_TYPEDEF
 #elif SIZEOF_UNSIGNED_INT == 8
 typedef unsigned int u64;