Skip to content

Commit 5e3efe2

Browse files
committed
Define __MACH__ for libc build and rtld
Also fix rtld-libc thr calls to use int tids
1 parent 876489f commit 5e3efe2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/libc/Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ LIBC_ARCH=${MACHINE_CPUARCH}
2626
# To include legacy CSRG SCCS ID strings, remove -DNO__SCCSID from CFLAGS.
2727
# To include RCS ID strings from other BSD projects, remove -DNO__RCSID from CFLAGS.
2828
CFLAGS+=-DNO__SCCSID -DNO__RCSID
29+
CFLAGS+=-D__MACH__ -D__RAVYNOS__
2930

3031
LIB=c
3132
SHLIB_MAJOR= 7

libexec/rtld-elf/rtld-libc/rtld_libc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ int __sys___getcwd(char *, size_t);
5252
int __sys_open(const char *, int, ...);
5353
int __sys_openat(int, const char *, int, ...);
5454
int __sys_sigprocmask(int, const sigset_t *, sigset_t *);
55-
int __sys_thr_kill(long, int);
56-
int __sys_thr_self(long *);
55+
int __sys_thr_kill(int, int);
56+
int __sys_thr_self(int *);
5757
__ssize_t __sys_pread(int, void *, __size_t, __off_t);
5858
__ssize_t __sys_read(int, void *, __size_t);
5959
__ssize_t __sys_write(int, const void *, __size_t);

0 commit comments

Comments
 (0)