Page MenuHomeFreeBSD

D62032.1795667139.diff
No OneTemporary

Authored By
Unknown
Size
17 KB
Referenced Files
None
Subscribers
None

D62032.1795667139.diff

diff --git a/lib/libc/Makefile b/lib/libc/Makefile
--- a/lib/libc/Makefile
+++ b/lib/libc/Makefile
@@ -40,6 +40,7 @@
WARNS?= 2
CFLAGS+=-I${LIBC_SRCTOP}/include -I${SRCTOP}/include
CFLAGS+=-I${LIBC_SRCTOP}/${LIBC_ARCH}
+CFLAGS+=-I${LIBSYS_SRCTOP}
CFLAGS+=-I${LIBSYS_SRCTOP}/${LIBC_ARCH}
.if ${MK_NLS} != "no"
CFLAGS+=-DNLS
diff --git a/lib/libc/include/libc_private.h b/lib/libc/include/libc_private.h
--- a/lib/libc/include/libc_private.h
+++ b/lib/libc/include/libc_private.h
@@ -38,6 +38,7 @@
#include <sys/_pthreadtypes.h>
#include <libsys.h>
+#include "libsys_private.h"
extern char **environ;
@@ -201,61 +202,8 @@
int _pthread_mutex_init_calloc_cb_stub(pthread_mutex_t *mutex,
void *(calloc_cb)(__size_t, __size_t));
-typedef void (*interpos_func_t)(void);
interpos_func_t *__libc_interposing_slot(int interposno);
extern interpos_func_t __libc_interposing[] __hidden;
-interpos_func_t *__libsys_interposing_slot(int interposno);
-
-enum {
- INTERPOS_accept,
- INTERPOS_accept4,
- INTERPOS_aio_suspend,
- INTERPOS_close,
- INTERPOS_connect,
- INTERPOS_fcntl,
- INTERPOS_fsync,
- INTERPOS_fork,
- INTERPOS_msync,
- INTERPOS_nanosleep,
- INTERPOS_openat,
- INTERPOS_poll,
- INTERPOS_pselect,
- INTERPOS_recvfrom,
- INTERPOS_recvmsg,
- INTERPOS_select,
- INTERPOS_sendmsg,
- INTERPOS_sendto,
- INTERPOS_setcontext,
- INTERPOS_sigaction,
- INTERPOS_sigprocmask,
- INTERPOS_sigsuspend,
- INTERPOS_sigwait,
- INTERPOS_sigtimedwait,
- INTERPOS_sigwaitinfo,
- INTERPOS_swapcontext,
- INTERPOS_system,
- INTERPOS_tcdrain,
- INTERPOS_read,
- INTERPOS_readv,
- INTERPOS_wait4,
- INTERPOS_write,
- INTERPOS_writev,
- INTERPOS__pthread_mutex_init_calloc_cb,
- INTERPOS_spinlock,
- INTERPOS_spinunlock,
- INTERPOS_kevent,
- INTERPOS_wait6,
- INTERPOS_ppoll,
- INTERPOS_map_stacks_exec,
- INTERPOS_fdatasync,
- INTERPOS_clock_nanosleep,
- INTERPOS__reserved0, /* was distribute_static_tls */
- INTERPOS_pdfork,
- INTERPOS_uexterr_gettext,
- INTERPOS_pdwait,
- INTERPOS_uexterr_set,
- INTERPOS_MAX
-};
#define _INTERPOS_SYS(type, idx, ...) \
((type *)*(__libc_interposing_slot(idx)))(__VA_ARGS__)
@@ -320,12 +268,6 @@
* Function to clean up streams, called from abort() and exit().
*/
extern void (*__cleanup)(void) __hidden;
-
-/*
- * Get kern.osreldate to detect ABI revisions. Explicitly
- * ignores value of $OSVERSION and caches result.
- */
-int __getosreldate(void);
#include <sys/_types.h>
#include <sys/_sigset.h>
@@ -354,11 +296,9 @@
int __libc_sigprocmask(int, const __sigset_t *, __sigset_t *)
__hidden;
int __libc_sigsuspend(const __sigset_t *) __hidden;
-int __libsys_sigwait(const __sigset_t *, int *) __hidden;
int __libc_system(const char *);
int __libc_tcdrain(int);
-int _elf_aux_info(int aux, void *buf, int buflen);
struct dl_phdr_info;
int __elf_phdr_match_addr(struct dl_phdr_info *, void *);
void __init_elf_aux_vector(void);
@@ -390,6 +330,4 @@
void __libc_uexterr_set(int eerror, int category, const char *mmsg,
uint64ptr_t pp1, uint64ptr_t pp2, int line);
-extern int __libsys_errno;
-
#endif /* _LIBC_PRIVATE_H_ */
diff --git a/lib/libdl/Makefile b/lib/libdl/Makefile
--- a/lib/libdl/Makefile
+++ b/lib/libdl/Makefile
@@ -4,6 +4,7 @@
.PATH: ${SRCTOP}/lib/libc/gen
CFLAGS+=-I${SRCTOP}/lib/libc/include
+CFLAGS+=-I${SRCTOP}/lib/libsys
RTLD_ELF_DIR=${SRCTOP}/libexec/rtld-elf
.if exists(${RTLD_ELF_DIR}/${MACHINE_ARCH:S/powerpc64le/powerpc64/})
RTLD_ARCH= ${MACHINE_ARCH:S/powerpc64le/powerpc64/}
diff --git a/lib/librt/Makefile b/lib/librt/Makefile
--- a/lib/librt/Makefile
+++ b/lib/librt/Makefile
@@ -5,7 +5,7 @@
PACKAGE=clibs
LIB=rt
SHLIB_MAJOR= 1
-CFLAGS+=-I${SRCTOP}/lib/libc/include -I${.CURDIR}
+CFLAGS+=-I${SRCTOP}/lib/libc/include -I${SRCTOP}/lib/libsys -I${.CURDIR}
.ifndef NO_THREAD_STACK_UNWIND
CFLAGS+=-fexceptions
.endif
diff --git a/lib/libssp/Makefile b/lib/libssp/Makefile
--- a/lib/libssp/Makefile
+++ b/lib/libssp/Makefile
@@ -24,6 +24,7 @@
.PATH: ${SRCTOP}/lib/libc/secure
CFLAGS+= -I${SRCTOP}/lib/libc/include
+CFLAGS+= -I${SRCTOP}/lib/libsys
# _elf_aux_info is exported from libc as elf_aux_info(3), so just that for the
# libssp build instead.
CFLAGS+= -D_elf_aux_info=elf_aux_info
diff --git a/lib/libsys/Makefile b/lib/libsys/Makefile
--- a/lib/libsys/Makefile
+++ b/lib/libsys/Makefile
@@ -27,9 +27,8 @@
CFLAGS+=-DLIBSYS
-CFLAGS+=-I${LIBSYS_SRCTOP}/include -I${LIBC_SRCTOP}/include
+CFLAGS+=-I${LIBSYS_SRCTOP} -I${LIBC_SRCTOP}/include
CFLAGS+=-I${LIBSYS_SRCTOP}/${LIBC_ARCH}
-CFLAGS+=-I${LIBC_SRCTOP}/${LIBC_ARCH}
.PATH: ${LIBC_SRCTOP}/string
SRCS+= memcpy.c memset.c strlcpy.c
diff --git a/lib/libsys/__error.c b/lib/libsys/__error.c
--- a/lib/libsys/__error.c
+++ b/lib/libsys/__error.c
@@ -29,7 +29,7 @@
* SUCH DAMAGE.
*/
-#include "libc_private.h"
+#include "libsys_private.h"
int __libsys_errno;
#ifdef LIBSYS
diff --git a/lib/libsys/__getosreldate.c b/lib/libsys/__getosreldate.c
--- a/lib/libsys/__getosreldate.c
+++ b/lib/libsys/__getosreldate.c
@@ -29,7 +29,7 @@
#include <sys/sysctl.h>
#include <errno.h>
#include <link.h>
-#include "libc_private.h"
+#include "libsys_private.h"
/*
* This is private to libc. It is intended for wrapping syscall stubs in order
diff --git a/lib/libsys/__vdso_gettimeofday.c b/lib/libsys/__vdso_gettimeofday.c
--- a/lib/libsys/__vdso_gettimeofday.c
+++ b/lib/libsys/__vdso_gettimeofday.c
@@ -33,7 +33,7 @@
#include <strings.h>
#include <time.h>
#include <machine/atomic.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
tc_delta(const struct vdso_timehands *th, u_int *delta)
diff --git a/lib/libsys/aarch64/__vdso_gettc.c b/lib/libsys/aarch64/__vdso_gettc.c
--- a/lib/libsys/aarch64/__vdso_gettc.c
+++ b/lib/libsys/aarch64/__vdso_gettc.c
@@ -32,7 +32,7 @@
#include <sys/vdso.h>
#include <machine/cpufunc.h>
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static inline uint64_t
cp15_cntvct_get(void)
diff --git a/lib/libsys/amd64/amd64_get_fsbase.c b/lib/libsys/amd64/amd64_get_fsbase.c
--- a/lib/libsys/amd64/amd64_get_fsbase.c
+++ b/lib/libsys/amd64/amd64_get_fsbase.c
@@ -35,7 +35,7 @@
#include <machine/specialreg.h>
#include <machine/sysarch.h>
#include <x86/ifunc.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
amd64_get_fsbase_cpu(void **addr)
diff --git a/lib/libsys/amd64/amd64_get_gsbase.c b/lib/libsys/amd64/amd64_get_gsbase.c
--- a/lib/libsys/amd64/amd64_get_gsbase.c
+++ b/lib/libsys/amd64/amd64_get_gsbase.c
@@ -35,7 +35,7 @@
#include <machine/specialreg.h>
#include <machine/sysarch.h>
#include <x86/ifunc.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
amd64_get_gsbase_cpu(void **addr)
diff --git a/lib/libsys/amd64/amd64_set_fsbase.c b/lib/libsys/amd64/amd64_set_fsbase.c
--- a/lib/libsys/amd64/amd64_set_fsbase.c
+++ b/lib/libsys/amd64/amd64_set_fsbase.c
@@ -35,7 +35,7 @@
#include <machine/specialreg.h>
#include <machine/sysarch.h>
#include <x86/ifunc.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
amd64_set_fsbase_cpu(void *addr)
diff --git a/lib/libsys/amd64/amd64_set_gsbase.c b/lib/libsys/amd64/amd64_set_gsbase.c
--- a/lib/libsys/amd64/amd64_set_gsbase.c
+++ b/lib/libsys/amd64/amd64_set_gsbase.c
@@ -35,7 +35,7 @@
#include <machine/specialreg.h>
#include <machine/sysarch.h>
#include <x86/ifunc.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
amd64_set_gsbase_cpu(void *addr)
diff --git a/lib/libsys/amd64/amd64_set_tlsbase.c b/lib/libsys/amd64/amd64_set_tlsbase.c
--- a/lib/libsys/amd64/amd64_set_tlsbase.c
+++ b/lib/libsys/amd64/amd64_set_tlsbase.c
@@ -35,7 +35,7 @@
#include <machine/specialreg.h>
#include <machine/sysarch.h>
#include <x86/ifunc.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
amd64_set_tlsbase_syscall(void *addr)
diff --git a/lib/libsys/arm/__vdso_gettc.c b/lib/libsys/arm/__vdso_gettc.c
--- a/lib/libsys/arm/__vdso_gettc.c
+++ b/lib/libsys/arm/__vdso_gettc.c
@@ -35,7 +35,7 @@
#include <machine/cpufunc.h>
#include <machine/acle-compat.h>
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static inline uint64_t
cp15_cntvct_get(void)
diff --git a/lib/libsys/auxv.c b/lib/libsys/auxv.c
--- a/lib/libsys/auxv.c
+++ b/lib/libsys/auxv.c
@@ -35,7 +35,10 @@
#include <string.h>
#include <sys/auxv.h>
#include "un-namespace.h"
+#include "libsys_private.h"
+#ifndef PIC
#include "libc_private.h"
+#endif
#include <machine/atomic.h>
extern int _DYNAMIC;
diff --git a/lib/libsys/clock_gettime.c b/lib/libsys/clock_gettime.c
--- a/lib/libsys/clock_gettime.c
+++ b/lib/libsys/clock_gettime.c
@@ -30,7 +30,7 @@
#include <sys/vdso.h>
#include <errno.h>
#include <time.h>
-#include "libc_private.h"
+#include "libsys_private.h"
int __clock_gettime(clockid_t, struct timespec *ts);
diff --git a/lib/libsys/getpagesize.c b/lib/libsys/getpagesize.c
--- a/lib/libsys/getpagesize.c
+++ b/lib/libsys/getpagesize.c
@@ -32,7 +32,7 @@
#include <sys/param.h>
#include <sys/auxv.h>
-#include "libc_private.h"
+#include "libsys_private.h"
/*
* NB: This function may be called from malloc(3) at initialization
diff --git a/lib/libsys/getpagesizes.c b/lib/libsys/getpagesizes.c
--- a/lib/libsys/getpagesizes.c
+++ b/lib/libsys/getpagesizes.c
@@ -30,7 +30,7 @@
#include <sys/auxv.h>
#include <sys/errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
/*
* Retrieves page size information from the system. Specifically, returns the
diff --git a/lib/libsys/gettimeofday.c b/lib/libsys/gettimeofday.c
--- a/lib/libsys/gettimeofday.c
+++ b/lib/libsys/gettimeofday.c
@@ -29,7 +29,7 @@
#include <sys/time.h>
#include <sys/vdso.h>
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
int __gettimeofday(struct timeval *tv, struct timezone *tz);
diff --git a/lib/libsys/interposing_table.c b/lib/libsys/interposing_table.c
--- a/lib/libsys/interposing_table.c
+++ b/lib/libsys/interposing_table.c
@@ -30,7 +30,7 @@
*/
#include <sys/types.h>
-#include "libc_private.h"
+#include "libsys_private.h"
#define SLOT(a, b) \
[INTERPOS_##a] = (interpos_func_t)b
diff --git a/lib/libsys/libsys_private.h b/lib/libsys/libsys_private.h
new file mode 100644
--- /dev/null
+++ b/lib/libsys/libsys_private.h
@@ -0,0 +1,110 @@
+/*-
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the author nor the names of any co-contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY JOHN BIRRELL AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ *
+ * Private definitions for libsys, libc and libthr.
+ *
+ */
+
+#ifndef _LIBSYS_PRIVATE_H_
+#define _LIBSYS_PRIVATE_H_
+
+#include <sys/cdefs.h>
+#include <sys/_types.h>
+#include <sys/_sigset.h>
+
+#include <libsys.h>
+
+typedef void (*interpos_func_t)(void);
+interpos_func_t *__libsys_interposing_slot(int interposno);
+
+enum {
+ INTERPOS_accept,
+ INTERPOS_accept4,
+ INTERPOS_aio_suspend,
+ INTERPOS_close,
+ INTERPOS_connect,
+ INTERPOS_fcntl,
+ INTERPOS_fsync,
+ INTERPOS_fork,
+ INTERPOS_msync,
+ INTERPOS_nanosleep,
+ INTERPOS_openat,
+ INTERPOS_poll,
+ INTERPOS_pselect,
+ INTERPOS_recvfrom,
+ INTERPOS_recvmsg,
+ INTERPOS_select,
+ INTERPOS_sendmsg,
+ INTERPOS_sendto,
+ INTERPOS_setcontext,
+ INTERPOS_sigaction,
+ INTERPOS_sigprocmask,
+ INTERPOS_sigsuspend,
+ INTERPOS_sigwait,
+ INTERPOS_sigtimedwait,
+ INTERPOS_sigwaitinfo,
+ INTERPOS_swapcontext,
+ INTERPOS_system,
+ INTERPOS_tcdrain,
+ INTERPOS_read,
+ INTERPOS_readv,
+ INTERPOS_wait4,
+ INTERPOS_write,
+ INTERPOS_writev,
+ INTERPOS__pthread_mutex_init_calloc_cb,
+ INTERPOS_spinlock,
+ INTERPOS_spinunlock,
+ INTERPOS_kevent,
+ INTERPOS_wait6,
+ INTERPOS_ppoll,
+ INTERPOS_map_stacks_exec,
+ INTERPOS_fdatasync,
+ INTERPOS_clock_nanosleep,
+ INTERPOS__reserved0, /* was distribute_static_tls */
+ INTERPOS_pdfork,
+ INTERPOS_uexterr_gettext,
+ INTERPOS_pdwait,
+ INTERPOS_uexterr_set,
+ INTERPOS_MAX
+};
+
+/*
+ * Get kern.osreldate to detect ABI revisions. Explicitly
+ * ignores value of $OSVERSION and caches result.
+ */
+int __getosreldate(void);
+
+int __libsys_sigwait(const __sigset_t *, int *) __hidden;
+
+int _elf_aux_info(int aux, void *buf, int buflen);
+
+extern int __libsys_errno;
+
+#endif /* _LIBSYS_PRIVATE_H_ */
diff --git a/lib/libsys/libsys_sigwait.c b/lib/libsys/libsys_sigwait.c
--- a/lib/libsys/libsys_sigwait.c
+++ b/lib/libsys/libsys_sigwait.c
@@ -27,7 +27,7 @@
#include <errno.h>
#include <signal.h>
-#include "libc_private.h"
+#include "libsys_private.h"
/* XXX: why does this symbol exist? */
__weak_reference(__libsys_sigwait, __sigwait);
diff --git a/lib/libsys/powerpc/__vdso_gettc.c b/lib/libsys/powerpc/__vdso_gettc.c
--- a/lib/libsys/powerpc/__vdso_gettc.c
+++ b/lib/libsys/powerpc/__vdso_gettc.c
@@ -38,7 +38,7 @@
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
#pragma weak __vdso_gettc
int
diff --git a/lib/libsys/powerpc64/__vdso_gettc.c b/lib/libsys/powerpc64/__vdso_gettc.c
--- a/lib/libsys/powerpc64/__vdso_gettc.c
+++ b/lib/libsys/powerpc64/__vdso_gettc.c
@@ -37,7 +37,7 @@
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
#pragma weak __vdso_gettc
int
diff --git a/lib/libsys/ptrace.c b/lib/libsys/ptrace.c
--- a/lib/libsys/ptrace.c
+++ b/lib/libsys/ptrace.c
@@ -32,7 +32,7 @@
#include <sys/types.h>
#include <sys/ptrace.h>
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
__weak_reference(_ptrace, ptrace);
diff --git a/lib/libsys/recvmmsg.c b/lib/libsys/recvmmsg.c
--- a/lib/libsys/recvmmsg.c
+++ b/lib/libsys/recvmmsg.c
@@ -33,7 +33,7 @@
#include <poll.h>
#include <stddef.h>
#include <ssp/ssp.h>
-#include "libc_private.h"
+#include "libsys_private.h"
ssize_t
__ssp_real(recvmmsg)(int s, struct mmsghdr *__restrict msgvec, size_t vlen,
diff --git a/lib/libsys/riscv/__vdso_gettc.c b/lib/libsys/riscv/__vdso_gettc.c
--- a/lib/libsys/riscv/__vdso_gettc.c
+++ b/lib/libsys/riscv/__vdso_gettc.c
@@ -32,7 +32,7 @@
#include <errno.h>
-#include "libc_private.h"
+#include "libsys_private.h"
#pragma weak __vdso_gettc
int
diff --git a/lib/libsys/sched_getcpu_gen.c b/lib/libsys/sched_getcpu_gen.c
--- a/lib/libsys/sched_getcpu_gen.c
+++ b/lib/libsys/sched_getcpu_gen.c
@@ -27,7 +27,7 @@
*/
#include <sched.h>
-#include "libc_private.h"
+#include "libsys_private.h"
int
sched_getcpu(void)
diff --git a/lib/libsys/sendmmsg.c b/lib/libsys/sendmmsg.c
--- a/lib/libsys/sendmmsg.c
+++ b/lib/libsys/sendmmsg.c
@@ -29,7 +29,7 @@
#include <sys/types.h>
#include <sys/socket.h>
-#include "libc_private.h"
+#include "libsys_private.h"
ssize_t
sendmmsg(int s, struct mmsghdr *__restrict msgvec, size_t vlen, int flags)
diff --git a/lib/libsys/x86/__vdso_gettc.c b/lib/libsys/x86/__vdso_gettc.c
--- a/lib/libsys/x86/__vdso_gettc.c
+++ b/lib/libsys/x86/__vdso_gettc.c
@@ -49,7 +49,7 @@
#include <dev/hyperv/hyperv.h>
#endif
#include <x86/ifunc.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static inline u_int
rdtsc_low(const struct vdso_timehands *th)
diff --git a/lib/libsys/x86/sched_getcpu_x86.c b/lib/libsys/x86/sched_getcpu_x86.c
--- a/lib/libsys/x86/sched_getcpu_x86.c
+++ b/lib/libsys/x86/sched_getcpu_x86.c
@@ -33,7 +33,7 @@
#include <x86/ifunc.h>
#include <errno.h>
#include <sched.h>
-#include "libc_private.h"
+#include "libsys_private.h"
static int
sched_getcpu_sys(void)
diff --git a/lib/libthr/Makefile b/lib/libthr/Makefile
--- a/lib/libthr/Makefile
+++ b/lib/libthr/Makefile
@@ -22,6 +22,7 @@
CFLAGS+=-DPTHREAD_KERNEL
CFLAGS+=-I${SRCTOP}/lib/libc/include
CFLAGS+=-I${SRCTOP}/lib/libc/${MACHINE_CPUARCH}
+CFLAGS+=-I${SRCTOP}/lib/libsys
CFLAGS+=-I${.CURDIR}/thread
CFLAGS+=-I${.CURDIR}/arch/${MACHINE_CPUARCH}/include
CFLAGS+=-I${.CURDIR}/sys
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -13,6 +13,7 @@
# LIBCSRCDIR is defined lazily, so can't be used for exists() below
LIBC_SRCTOP=${SRCTOP}/lib/libc
+LIBSYS_SRCTOP=${SRCTOP}/lib/libsys
# Location of fpmath.h and _fpmath.h
ARCH_SUBDIR= ${MACHINE_CPUARCH:S/i386/i387/}
@@ -119,7 +120,7 @@
.endif
CFLAGS+= -I${.CURDIR}/src -I${LIBC_SRCTOP}/include \
- -I${LIBC_SRCTOP}/${LIBC_ARCH}
+ -I${LIBC_SRCTOP}/${LIBC_ARCH} -I${LIBSYS_SRCTOP}
SYM_MAPS+= ${.CURDIR}/Symbol.map
SYM_MAPS+= ${.CURDIR}/${ARCH_SUBDIR}/Symbol.map
diff --git a/rescue/librescue/Makefile b/rescue/librescue/Makefile
--- a/rescue/librescue/Makefile
+++ b/rescue/librescue/Makefile
@@ -44,5 +44,6 @@
CFLAGS+= -DHESIOD
.endif
CFLAGS+= -I${SRCTOP}/lib/libc/include
+CFLAGS+= -I${SRCTOP}/lib/libsys
.include <bsd.lib.mk>

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 26, 4:25 AM (13 h, 39 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
42005934
Default Alt Text
D62032.1795667139.diff (17 KB)

Event Timeline