Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src limit use of rumpuser.h to where it is meant to be used from
details: https://anonhg.NetBSD.org/src/rev/03f156ab31a8
branches: trunk
changeset: 785177:03f156ab31a8
user: pooka <pooka%NetBSD.org@localhost>
date: Fri Mar 01 13:52:31 2013 +0000
description:
limit use of rumpuser.h to where it is meant to be used from
diffstat:
lib/librumpuser/Makefile | 3 ++-
sys/rump/include/rump/rumpuser.h | 6 +++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diffs (37 lines):
diff -r fdd5ef71691a -r 03f156ab31a8 lib/librumpuser/Makefile
--- a/lib/librumpuser/Makefile Fri Mar 01 13:49:42 2013 +0000
+++ b/lib/librumpuser/Makefile Fri Mar 01 13:52:31 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.6 2012/03/21 05:37:44 matt Exp $
+# $NetBSD: Makefile,v 1.7 2013/03/01 13:52:31 pooka Exp $
#
WARNS?= 5
@@ -8,6 +8,7 @@
LIB= rumpuser
LIBDPLIBS+= pthread ${.CURDIR}/../libpthread
+CPPFLAGS+= -DLIBRUMPUSER
#CPPFLAGS+= -D_DIAGNOSTIC
SRCS= rumpuser.c rumpuser_net.c
diff -r fdd5ef71691a -r 03f156ab31a8 sys/rump/include/rump/rumpuser.h
--- a/sys/rump/include/rump/rumpuser.h Fri Mar 01 13:49:42 2013 +0000
+++ b/sys/rump/include/rump/rumpuser.h Fri Mar 01 13:52:31 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rumpuser.h,v 1.73 2012/09/14 16:29:21 pooka Exp $ */
+/* $NetBSD: rumpuser.h,v 1.74 2013/03/01 13:52:31 pooka Exp $ */
/*
* Copyright (c) 2007-2011 Antti Kantee. All Rights Reserved.
@@ -28,6 +28,10 @@
#ifndef _RUMP_RUMPUSER_H_
#define _RUMP_RUMPUSER_H_
+#if !defined(_KERNEL) && !defined(LIBRUMPUSER)
+#error The rump/rumpuser.h interface is not for non-kernel consumers
+#endif
+
#ifdef _KERNEL
#include <sys/stdint.h>
#else
Home |
Main Index |
Thread Index |
Old Index