Skip to content

Commit

Permalink
Define __MACH__ for libc build and rtld
Browse files Browse the repository at this point in the history
Also fix rtld-libc thr calls to use int tids
  • Loading branch information
mszoek committed May 8, 2024
1 parent 876489f commit 5e3efe2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/libc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ LIBC_ARCH=${MACHINE_CPUARCH}
# To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS.
# To include RCS ID strings from other BSD projects, remove -DNO__RCSID from CFLAGS.
CFLAGS+=-DNO__SCCSID -DNO__RCSID
CFLAGS+=-D__MACH__ -D__RAVYNOS__

LIB=c
SHLIB_MAJOR= 7
Expand Down
4 changes: 2 additions & 2 deletions libexec/rtld-elf/rtld-libc/rtld_libc.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ int __sys___getcwd(char *, size_t);
int __sys_open(const char *, int, ...);
int __sys_openat(int, const char *, int, ...);
int __sys_sigprocmask(int, const sigset_t *, sigset_t *);
int __sys_thr_kill(long, int);
int __sys_thr_self(long *);
int __sys_thr_kill(int, int);
int __sys_thr_self(int *);
__ssize_t __sys_pread(int, void *, __size_t, __off_t);
__ssize_t __sys_read(int, void *, __size_t);
__ssize_t __sys_write(int, const void *, __size_t);
Expand Down

0 comments on commit 5e3efe2

Please sign in to comment.