Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/include/rump Explicitly produce an error if the myt...



details:   https://anonhg.NetBSD.org/src/rev/725aa4482517
branches:  trunk
changeset: 789337:725aa4482517
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Aug 15 21:29:04 2013 +0000

description:
Explicitly produce an error if the mythical kernel folk try to include
this header.

diffstat:

 sys/rump/include/rump/rump_syscalls_compat.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 773861ef42f6 -r 725aa4482517 sys/rump/include/rump/rump_syscalls_compat.h
--- a/sys/rump/include/rump/rump_syscalls_compat.h      Thu Aug 15 21:28:23 2013 +0000
+++ b/sys/rump/include/rump/rump_syscalls_compat.h      Thu Aug 15 21:29:04 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump_syscalls_compat.h,v 1.12 2013/08/15 21:21:47 pooka Exp $  */
+/*     $NetBSD: rump_syscalls_compat.h,v 1.13 2013/08/15 21:29:04 pooka Exp $  */
 
 /*-
  * Copyright (c) 2010, 2011 Antti Kantee.  All Rights Reserved.
@@ -25,6 +25,10 @@
  * SUCH DAMAGE.
  */
 
+#ifdef _KERNEL
+#error rump_syscalls_compat is not for kernel consumers
+#endif
+
 #ifndef _RUMP_RUMP_SYSCALLS_COMPAT_H_
 #define _RUMP_RUMP_SYSCALLS_COMPAT_H_
 



Home | Main Index | Thread Index | Old Index