$OpenBSD: patch-src_sqlite_h_in,v 1.2 2008/10/27 17:14:18 simon Exp $
--- src/sqlite.h.in.orig	Tue Oct 14 20:07:41 2008
+++ src/sqlite.h.in	Sat Oct 25 19:39:50 2008
@@ -35,6 +35,7 @@
 #ifndef _SQLITE3_H_
 #define _SQLITE3_H_
 #include <stdarg.h>     /* Needed for the definition of va_list */
+#include <stdint.h>
 
 /*
 ** Make sure we can call this stuff from C++.
@@ -215,6 +216,9 @@ typedef struct sqlite3 sqlite3;
 ** {H10202} The [sqlite_uint64] and [sqlite3_uint64] type shall specify
 **          a 64-bit unsigned integer.
 */
+typedef int64_t sqlite_int64;
+typedef uint64_t sqlite_uint64;
+#if 0
 #ifdef SQLITE_INT64_TYPE
   typedef SQLITE_INT64_TYPE sqlite_int64;
   typedef unsigned SQLITE_INT64_TYPE sqlite_uint64;
@@ -224,6 +228,7 @@ typedef struct sqlite3 sqlite3;
 #else
   typedef long long int sqlite_int64;
   typedef unsigned long long int sqlite_uint64;
+#endif
 #endif
 typedef sqlite_int64 sqlite3_int64;
 typedef sqlite_uint64 sqlite3_uint64;
