Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Move CTASSERT a few lines down so as to not collide ...
details: https://anonhg.NetBSD.org/src/rev/fab78e2e72f2
branches: trunk
changeset: 785278:fab78e2e72f2
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Mar 06 18:16:58 2013 +0000
description:
Move CTASSERT a few lines down so as to not collide with the CTASSERT
in rtsock.c (relevant for compilers without __COUNTER__). Yes,
it's a really cheap tweak. Tweak better if it tickles your tweakybone.
diffstat:
sys/sys/ucontext.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r d5525c5adaa8 -r fab78e2e72f2 sys/sys/ucontext.h
--- a/sys/sys/ucontext.h Wed Mar 06 17:32:51 2013 +0000
+++ b/sys/sys/ucontext.h Wed Mar 06 18:16:58 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ucontext.h,v 1.17 2012/09/12 02:00:54 manu Exp $ */
+/* $NetBSD: ucontext.h,v 1.18 2013/03/06 18:16:58 pooka Exp $ */
/*-
* Copyright (c) 1999, 2003 The NetBSD Foundation, Inc.
@@ -104,15 +104,15 @@
#ifdef _KERNEL
struct lwp;
-#ifdef __UCONTEXT_SIZE
-__CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE);
-#endif
-
void getucontext(struct lwp *, ucontext_t *);
int setucontext(struct lwp *, const ucontext_t *);
void cpu_getmcontext(struct lwp *, mcontext_t *, unsigned int *);
int cpu_setmcontext(struct lwp *, const mcontext_t *, unsigned int);
int cpu_mcontext_validate(struct lwp *, const mcontext_t *);
+
+#ifdef __UCONTEXT_SIZE
+__CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE);
+#endif
#endif /* _KERNEL */
#endif /* !_SYS_UCONTEXT_H_ */
Home |
Main Index |
Thread Index |
Old Index