mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 06:53:33 +00:00
Fix SQLite3 build for Landlock Make
This commit is contained in:
parent
ed161b240e
commit
4922bc4890
7 changed files with 28 additions and 14 deletions
3
third_party/sqlite3/ctime.c
vendored
3
third_party/sqlite3/ctime.c
vendored
|
@ -1,3 +1,4 @@
|
|||
// clang-format off
|
||||
/* DO NOT EDIT!
|
||||
** This file is automatically generated by the script in the canonical
|
||||
** SQLite source tree at tool/mkctimec.tcl.
|
||||
|
@ -28,7 +29,7 @@
|
|||
** autoconf-based build
|
||||
*/
|
||||
#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
|
||||
#include "sqlite_cfg.h"
|
||||
// #include "third_party/sqlite3/sqlite_cfg.h"
|
||||
#define SQLITECONFIG_H 1
|
||||
#endif
|
||||
|
||||
|
|
7
third_party/sqlite3/main.c
vendored
7
third_party/sqlite3/main.c
vendored
|
@ -1,3 +1,4 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2001 September 15
|
||||
**
|
||||
|
@ -17,13 +18,13 @@
|
|||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
|
||||
#ifdef SQLITE_ENABLE_FTS3
|
||||
# include "third_party/sqlite3/fts3.h"
|
||||
#include "third_party/sqlite3/fts3.h"
|
||||
#endif
|
||||
#ifdef SQLITE_ENABLE_RTREE
|
||||
# include "third_party/sqlite3/rtree.h"
|
||||
#include "third_party/sqlite3/rtree.h"
|
||||
#endif
|
||||
#if defined(SQLITE_ENABLE_ICU) || defined(SQLITE_ENABLE_ICU_COLLATIONS)
|
||||
# include "third_party/sqlite3/sqliteicu.h"
|
||||
#include "third_party/sqlite3/sqliteicu.h"
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
20
third_party/sqlite3/os_unix.c
vendored
20
third_party/sqlite3/os_unix.c
vendored
|
@ -112,13 +112,23 @@
|
|||
#include "libc/mem/mem.h"
|
||||
|
||||
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
|
||||
#include "libc/isystem/sys/mman.h"
|
||||
#include "libc/calls/calls.h"
|
||||
#include "libc/sysv/consts/map.h"
|
||||
#endif
|
||||
|
||||
#if SQLITE_ENABLE_LOCKING_STYLE
|
||||
# include "libc/isystem/sys/ioctl.h"
|
||||
# include "libc/isystem/sys/file.h"
|
||||
# include "libc/isystem/sys/param.h"
|
||||
#include "libc/calls/ioctl.h"
|
||||
#include "libc/calls/struct/winsize.h"
|
||||
#include "libc/sysv/consts/fd.h"
|
||||
#include "libc/sysv/consts/fio.h"
|
||||
#include "libc/calls/struct/flock.h"
|
||||
#include "libc/sysv/consts/l.h"
|
||||
#include "libc/sysv/consts/lock.h"
|
||||
#include "libc/sysv/consts/ok.h"
|
||||
#include "libc/calls/struct/rlimit.h"
|
||||
#include "libc/calls/struct/rusage.h"
|
||||
#include "libc/calls/sysparam.h"
|
||||
#include "libc/limits.h"
|
||||
#endif /* SQLITE_ENABLE_LOCKING_STYLE */
|
||||
|
||||
/*
|
||||
|
@ -302,7 +312,7 @@ static pid_t randomnessPid = 0;
|
|||
/*
|
||||
** Include code that is common to all os_*.c files
|
||||
*/
|
||||
#include "os_common.h"
|
||||
#include "third_party/sqlite3/os_common.h"
|
||||
|
||||
/*
|
||||
** Define various macros that are missing from some systems.
|
||||
|
|
2
third_party/sqlite3/shell.c
vendored
2
third_party/sqlite3/shell.c
vendored
|
@ -180,7 +180,7 @@ typedef unsigned char u8;
|
|||
|
||||
#elif HAVE_LINENOISE
|
||||
|
||||
# include "third_party/linenoise/linenoise.h"
|
||||
#include "third_party/linenoise/linenoise.h"
|
||||
# define shell_add_history(X) linenoiseHistoryAdd(X)
|
||||
# define shell_read_history(X) linenoiseHistoryLoad(X)
|
||||
# define shell_write_history(X) linenoiseHistorySave(X)
|
||||
|
|
3
third_party/sqlite3/sqlite3rbu.c
vendored
3
third_party/sqlite3/sqlite3rbu.c
vendored
|
@ -1,3 +1,4 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2014 August 30
|
||||
**
|
||||
|
@ -90,7 +91,7 @@
|
|||
#include "third_party/sqlite3/sqlite3rbu.h"
|
||||
|
||||
#if defined(_WIN32_WCE)
|
||||
#include "windows.h"
|
||||
// #include "third_party/sqlite3/windows.h"
|
||||
#endif
|
||||
|
||||
/* Maximum number of prepared UPDATE statements held by this module */
|
||||
|
|
4
third_party/sqlite3/sqlite3session.c
vendored
4
third_party/sqlite3/sqlite3session.c
vendored
|
@ -10,8 +10,8 @@
|
|||
#endif
|
||||
|
||||
#ifndef SQLITE_AMALGAMATION
|
||||
# include "third_party/sqlite3/sqliteInt.h"
|
||||
# include "third_party/sqlite3/vdbeInt.inc"
|
||||
#include "third_party/sqlite3/sqliteInt.h"
|
||||
#include "third_party/sqlite3/vdbeInt.inc"
|
||||
#endif
|
||||
|
||||
typedef struct SessionTable SessionTable;
|
||||
|
|
3
third_party/sqlite3/sqliteInt.h
vendored
3
third_party/sqlite3/sqliteInt.h
vendored
|
@ -1,3 +1,4 @@
|
|||
// clang-format off
|
||||
/*
|
||||
** 2001 September 15
|
||||
**
|
||||
|
@ -208,7 +209,7 @@
|
|||
** autoconf-based build
|
||||
*/
|
||||
#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
|
||||
#include "sqlite_cfg.h"
|
||||
// #include "third_party/sqlite3/sqlite_cfg.h"
|
||||
#define SQLITECONFIG_H 1
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue