openbsd-ports/databases/sqlite3/patches/patch-src_sqlite_h_in
sthen dc0e69d86a Update to 3.6.23, much of this was done by Florent Tribouilloy and
espie@ who adjusted things so the build doesn't depend on Tcl (which
was added as a build dependency in 3.6.17).
2010-04-02 20:07:11 +00:00

30 lines
975 B
Plaintext

$OpenBSD: patch-src_sqlite_h_in,v 1.4 2010/04/02 20:07:11 sthen Exp $
--- src/sqlite.h.in.orig Mon Mar 8 15:08:55 2010
+++ src/sqlite.h.in Fri Mar 26 19:44:15 2010
@@ -33,6 +33,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++.
@@ -237,6 +238,9 @@ typedef struct sqlite3 sqlite3;
** sqlite3_uint64 and sqlite_uint64 types can store integer values
** between 0 and +18446744073709551615 inclusive.
*/
+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;
@@ -246,6 +250,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;