Module Name: src Committed By: martin Date: Sat Oct 3 09:56:00 UTC 2020
Modified Files: src/sys/arch/mips/include: mcontext.h Log Message: Add missing __BEGIN_DECLS/__END_DECLS to force function declarations into the "C" namespace. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24 src/sys/arch/mips/include/mcontext.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/mips/include/mcontext.h diff -u src/sys/arch/mips/include/mcontext.h:1.23 src/sys/arch/mips/include/mcontext.h:1.24 --- src/sys/arch/mips/include/mcontext.h:1.23 Sun Jul 26 08:08:41 2020 +++ src/sys/arch/mips/include/mcontext.h Sat Oct 3 09:56:00 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: mcontext.h,v 1.23 2020/07/26 08:08:41 simonb Exp $ */ +/* $NetBSD: mcontext.h,v 1.24 2020/10/03 09:56:00 martin Exp $ */ /*- * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. @@ -196,6 +196,8 @@ typedef struct { __CTASSERT(TLS_TP_OFFSET + sizeof(struct tls_tcb) < 0x8000); __CTASSERT(TLS_TP_OFFSET % sizeof(struct tls_tcb) == 0); +__BEGIN_DECLS + static __inline struct tls_tcb * __lwp_gettcb_fast(void) { @@ -233,6 +235,7 @@ __lwp_settcb(struct tls_tcb *__tcb) __tcb += TLS_TP_OFFSET / sizeof(*__tcb) + 1; _lwp_setprivate(__tcb); } +__END_DECLS #endif #endif /* _MIPS_MCONTEXT_H_ */