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.
This commit is contained in:
parent
d79f48086b
commit
eac51ddefd
|
@ -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 @@ struct __ucontext {
|
|||
#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_ */
|
||||
|
|
Loading…
Reference in New Issue