mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-24 06:12:27 +00:00
Fix missing includes
This commit is contained in:
parent
4a59210008
commit
f6407d5f7c
10 changed files with 12 additions and 2 deletions
3
Makefile
3
Makefile
|
@ -396,7 +396,8 @@ o/cosmopolitan.h: \
|
||||||
$(foreach x,$(COSMOPOLITAN_HEADERS),$($(x)_HDRS)) \
|
$(foreach x,$(COSMOPOLITAN_HEADERS),$($(x)_HDRS)) \
|
||||||
$(foreach x,$(COSMOPOLITAN_HEADERS),$($(x)_INCS))
|
$(foreach x,$(COSMOPOLITAN_HEADERS),$($(x)_INCS))
|
||||||
$(file >$(TMPDIR)/$(subst /,_,$@),libc/integral/normalize.inc $(foreach x,$(COSMOPOLITAN_HEADERS),$($(x)_HDRS)))
|
$(file >$(TMPDIR)/$(subst /,_,$@),libc/integral/normalize.inc $(foreach x,$(COSMOPOLITAN_HEADERS),$($(x)_HDRS)))
|
||||||
@$(COMPILE) -AROLLUP -T$@ o/$(MODE)/tool/build/rollup.com @$(TMPDIR)/$(subst /,_,$@) >$@
|
@$(ECHO) '#define COSMO' >$@
|
||||||
|
@$(COMPILE) -AROLLUP -T$@ o/$(MODE)/tool/build/rollup.com @$(TMPDIR)/$(subst /,_,$@) >>$@
|
||||||
|
|
||||||
o/cosmopolitan.html: private .UNSANDBOXED = 1
|
o/cosmopolitan.html: private .UNSANDBOXED = 1
|
||||||
o/cosmopolitan.html: \
|
o/cosmopolitan.html: \
|
||||||
|
|
3
third_party/lua/lua.main.c
vendored
3
third_party/lua/lua.main.c
vendored
|
@ -26,12 +26,14 @@
|
||||||
│ │
|
│ │
|
||||||
╚─────────────────────────────────────────────────────────────────────────────*/
|
╚─────────────────────────────────────────────────────────────────────────────*/
|
||||||
#define lua_c
|
#define lua_c
|
||||||
|
#include "third_party/lua/lua.h"
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/calls/struct/sigaction.h"
|
#include "libc/calls/struct/sigaction.h"
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
#include "libc/errno.h"
|
#include "libc/errno.h"
|
||||||
#include "libc/log/log.h"
|
#include "libc/log/log.h"
|
||||||
#include "libc/mem/gc.h"
|
#include "libc/mem/gc.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "libc/runtime/stack.h"
|
#include "libc/runtime/stack.h"
|
||||||
#include "libc/sock/sock.h"
|
#include "libc/sock/sock.h"
|
||||||
#include "libc/sock/struct/pollfd.h"
|
#include "libc/sock/struct/pollfd.h"
|
||||||
|
@ -45,7 +47,6 @@
|
||||||
#include "third_party/lua/lauxlib.h"
|
#include "third_party/lua/lauxlib.h"
|
||||||
#include "third_party/lua/lprefix.h"
|
#include "third_party/lua/lprefix.h"
|
||||||
#include "third_party/lua/lrepl.h"
|
#include "third_party/lua/lrepl.h"
|
||||||
#include "third_party/lua/lua.h"
|
|
||||||
#include "third_party/lua/lualib.h"
|
#include "third_party/lua/lualib.h"
|
||||||
#include "third_party/lua/lunix.h"
|
#include "third_party/lua/lunix.h"
|
||||||
#include "tool/args/args.h"
|
#include "tool/args/args.h"
|
||||||
|
|
1
third_party/make/commands.c
vendored
1
third_party/make/commands.c
vendored
|
@ -21,6 +21,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "third_party/make/job.h"
|
#include "third_party/make/job.h"
|
||||||
#include "third_party/make/variable.h"
|
#include "third_party/make/variable.h"
|
||||||
/**/
|
/**/
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/make/commands.h"
|
#include "third_party/make/commands.h"
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
||||||
|
|
1
third_party/make/file.c
vendored
1
third_party/make/file.c
vendored
|
@ -25,6 +25,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "third_party/make/debug.h"
|
#include "third_party/make/debug.h"
|
||||||
#include "libc/assert.h"
|
#include "libc/assert.h"
|
||||||
#include "libc/sysv/consts/clock.h"
|
#include "libc/sysv/consts/clock.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/make/hash.h"
|
#include "third_party/make/hash.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
1
third_party/make/hash.c
vendored
1
third_party/make/hash.c
vendored
|
@ -21,6 +21,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "libc/intrin/bsr.h"
|
#include "libc/intrin/bsr.h"
|
||||||
#include "libc/intrin/likely.h"
|
#include "libc/intrin/likely.h"
|
||||||
#include "libc/log/check.h"
|
#include "libc/log/check.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "libc/x/x.h"
|
#include "libc/x/x.h"
|
||||||
#include "third_party/make/hash.h"
|
#include "third_party/make/hash.h"
|
||||||
/* clang-format off */
|
/* clang-format off */
|
||||||
|
|
1
third_party/make/output.c
vendored
1
third_party/make/output.c
vendored
|
@ -18,6 +18,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "third_party/make/makeint.inc"
|
#include "third_party/make/makeint.inc"
|
||||||
#include "third_party/make/os.h"
|
#include "third_party/make/os.h"
|
||||||
#include "third_party/make/output.h"
|
#include "third_party/make/output.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "libc/calls/struct/flock.h"
|
#include "libc/calls/struct/flock.h"
|
||||||
|
|
||||||
/* GNU make no longer supports pre-ANSI89 environments. */
|
/* GNU make no longer supports pre-ANSI89 environments. */
|
||||||
|
|
1
third_party/make/read.c
vendored
1
third_party/make/read.c
vendored
|
@ -25,6 +25,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "third_party/make/rule.h"
|
#include "third_party/make/rule.h"
|
||||||
#include "third_party/make/debug.h"
|
#include "third_party/make/debug.h"
|
||||||
#include "third_party/musl/passwd.h"
|
#include "third_party/musl/passwd.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/make/hash.h"
|
#include "third_party/make/hash.h"
|
||||||
|
|
||||||
# define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */
|
# define GLOB_ALTDIRFUNC (1 << 9)/* Use gl_opendir et al functions. */
|
||||||
|
|
1
third_party/make/remake.c
vendored
1
third_party/make/remake.c
vendored
|
@ -21,6 +21,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "third_party/make/commands.h"
|
#include "third_party/make/commands.h"
|
||||||
#include "third_party/make/dep.h"
|
#include "third_party/make/dep.h"
|
||||||
#include "third_party/make/variable.h"
|
#include "third_party/make/variable.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/make/debug.h"
|
#include "third_party/make/debug.h"
|
||||||
|
|
||||||
/* The test for circular dependencies is based on the 'updating' bit in
|
/* The test for circular dependencies is based on the 'updating' bit in
|
||||||
|
|
1
third_party/make/rule.c
vendored
1
third_party/make/rule.c
vendored
|
@ -21,6 +21,7 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "third_party/make/job.h"
|
#include "third_party/make/job.h"
|
||||||
#include "third_party/make/commands.h"
|
#include "third_party/make/commands.h"
|
||||||
#include "third_party/make/variable.h"
|
#include "third_party/make/variable.h"
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/make/rule.h"
|
#include "third_party/make/rule.h"
|
||||||
|
|
||||||
static void freerule (struct rule *rule, struct rule *lastrule);
|
static void freerule (struct rule *rule, struct rule *lastrule);
|
||||||
|
|
1
third_party/make/variable.c
vendored
1
third_party/make/variable.c
vendored
|
@ -15,6 +15,7 @@ A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
||||||
You should have received a copy of the GNU General Public License along with
|
You should have received a copy of the GNU General Public License along with
|
||||||
this program. If not, see <http://www.gnu.org/licenses/>. */
|
this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
|
|
||||||
|
#include "libc/runtime/runtime.h"
|
||||||
#include "third_party/make/makeint.inc"
|
#include "third_party/make/makeint.inc"
|
||||||
|
|
||||||
#include "third_party/make/filedef.h"
|
#include "third_party/make/filedef.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue