Module Name:    src
Committed By:   pooka
Date:           Thu Aug 15 21:29:04 UTC 2013

Modified Files:
        src/sys/rump/include/rump: rump_syscalls_compat.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/rump/include/rump/rump_syscalls_compat.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/rump/include/rump/rump_syscalls_compat.h
diff -u src/sys/rump/include/rump/rump_syscalls_compat.h:1.12 src/sys/rump/include/rump/rump_syscalls_compat.h:1.13
--- src/sys/rump/include/rump/rump_syscalls_compat.h:1.12	Thu Aug 15 21:21:47 2013
+++ src/sys/rump/include/rump/rump_syscalls_compat.h	Thu Aug 15 21:29:04 2013
@@ -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_
 

Reply via email to