mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-04-19 05:14:43 +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!
|
/* DO NOT EDIT!
|
||||||
** This file is automatically generated by the script in the canonical
|
** This file is automatically generated by the script in the canonical
|
||||||
** SQLite source tree at tool/mkctimec.tcl.
|
** SQLite source tree at tool/mkctimec.tcl.
|
||||||
|
@ -28,7 +29,7 @@
|
||||||
** autoconf-based build
|
** autoconf-based build
|
||||||
*/
|
*/
|
||||||
#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
|
#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
|
||||||
#include "sqlite_cfg.h"
|
// #include "third_party/sqlite3/sqlite_cfg.h"
|
||||||
#define SQLITECONFIG_H 1
|
#define SQLITECONFIG_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
1
third_party/sqlite3/main.c
vendored
1
third_party/sqlite3/main.c
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
// clang-format off
|
||||||
/*
|
/*
|
||||||
** 2001 September 15
|
** 2001 September 15
|
||||||
**
|
**
|
||||||
|
|
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"
|
#include "libc/mem/mem.h"
|
||||||
|
|
||||||
#if !defined(SQLITE_OMIT_WAL) || SQLITE_MAX_MMAP_SIZE>0
|
#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
|
#endif
|
||||||
|
|
||||||
#if SQLITE_ENABLE_LOCKING_STYLE
|
#if SQLITE_ENABLE_LOCKING_STYLE
|
||||||
# include "libc/isystem/sys/ioctl.h"
|
#include "libc/calls/ioctl.h"
|
||||||
# include "libc/isystem/sys/file.h"
|
#include "libc/calls/struct/winsize.h"
|
||||||
# include "libc/isystem/sys/param.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 */
|
#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 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.
|
** Define various macros that are missing from some systems.
|
||||||
|
|
3
third_party/sqlite3/sqlite3rbu.c
vendored
3
third_party/sqlite3/sqlite3rbu.c
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
// clang-format off
|
||||||
/*
|
/*
|
||||||
** 2014 August 30
|
** 2014 August 30
|
||||||
**
|
**
|
||||||
|
@ -90,7 +91,7 @@
|
||||||
#include "third_party/sqlite3/sqlite3rbu.h"
|
#include "third_party/sqlite3/sqlite3rbu.h"
|
||||||
|
|
||||||
#if defined(_WIN32_WCE)
|
#if defined(_WIN32_WCE)
|
||||||
#include "windows.h"
|
// #include "third_party/sqlite3/windows.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Maximum number of prepared UPDATE statements held by this module */
|
/* Maximum number of prepared UPDATE statements held by this module */
|
||||||
|
|
3
third_party/sqlite3/sqliteInt.h
vendored
3
third_party/sqlite3/sqliteInt.h
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
// clang-format off
|
||||||
/*
|
/*
|
||||||
** 2001 September 15
|
** 2001 September 15
|
||||||
**
|
**
|
||||||
|
@ -208,7 +209,7 @@
|
||||||
** autoconf-based build
|
** autoconf-based build
|
||||||
*/
|
*/
|
||||||
#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
|
#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
|
||||||
#include "sqlite_cfg.h"
|
// #include "third_party/sqlite3/sqlite_cfg.h"
|
||||||
#define SQLITECONFIG_H 1
|
#define SQLITECONFIG_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue