mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-26 20:40:28 +00:00
Fix bugs in cosmocc toolchain
This change integrates e58abc1110b335a3341e8ad5821ad8e3880d9bb2 from https://github.com/ahgamut/musl-cross-make/ which fixes the issues we were having with our C language extension for symbolic constants. This change also performs some code cleanup and bug fixes to getaddrinfo(). It's now possible to compile projects like ncurses, readline and python without needing to patch anything upstream, except maybe a line or two. Pretty soon it should be possible to build a Linux distro on Cosmo.
This commit is contained in:
parent
22f81a8d50
commit
23e235b7a5
272 changed files with 3491 additions and 4350 deletions
|
@ -1,22 +1,21 @@
|
|||
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SHM_H_
|
||||
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SHM_H_
|
||||
#include "libc/runtime/symbolic.h"
|
||||
|
||||
#define SHM_ANON SYMBOLIC(SHM_ANON)
|
||||
#define SHM_DEST SYMBOLIC(SHM_DEST)
|
||||
#define SHM_EXEC SYMBOLIC(SHM_EXEC)
|
||||
#define SHM_HUGETLB SYMBOLIC(SHM_HUGETLB)
|
||||
#define SHM_INFO SYMBOLIC(SHM_INFO)
|
||||
#define SHM_LOCK SYMBOLIC(SHM_LOCK)
|
||||
#define SHM_LOCKED SYMBOLIC(SHM_LOCKED)
|
||||
#define SHM_NORESERVE SYMBOLIC(SHM_NORESERVE)
|
||||
#define SHM_R SYMBOLIC(SHM_R)
|
||||
#define SHM_RDONLY SYMBOLIC(SHM_RDONLY)
|
||||
#define SHM_REMAP SYMBOLIC(SHM_REMAP)
|
||||
#define SHM_RND SYMBOLIC(SHM_RND)
|
||||
#define SHM_STAT SYMBOLIC(SHM_STAT)
|
||||
#define SHM_UNLOCK SYMBOLIC(SHM_UNLOCK)
|
||||
#define SHM_W SYMBOLIC(SHM_W)
|
||||
#define SHM_ANON SHM_ANON
|
||||
#define SHM_DEST SHM_DEST
|
||||
#define SHM_EXEC SHM_EXEC
|
||||
#define SHM_HUGETLB SHM_HUGETLB
|
||||
#define SHM_INFO SHM_INFO
|
||||
#define SHM_LOCK SHM_LOCK
|
||||
#define SHM_LOCKED SHM_LOCKED
|
||||
#define SHM_NORESERVE SHM_NORESERVE
|
||||
#define SHM_R SHM_R
|
||||
#define SHM_RDONLY SHM_RDONLY
|
||||
#define SHM_REMAP SHM_REMAP
|
||||
#define SHM_RND SHM_RND
|
||||
#define SHM_STAT SHM_STAT
|
||||
#define SHM_UNLOCK SHM_UNLOCK
|
||||
#define SHM_W SHM_W
|
||||
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue