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 Let the includer figure out where to g...



details:   https://anonhg.NetBSD.org/src/rev/fe09689e3035
branches:  trunk
changeset: 786363:fe09689e3035
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Apr 27 15:32:36 2013 +0000

description:
Let the includer figure out where to get stdint or equivalent from.

diffstat:

 sys/rump/include/rump/rumpuser.h |  13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diffs (31 lines):

diff -r 222bc40aa212 -r fe09689e3035 sys/rump/include/rump/rumpuser.h
--- a/sys/rump/include/rump/rumpuser.h  Sat Apr 27 15:13:11 2013 +0000
+++ b/sys/rump/include/rump/rumpuser.h  Sat Apr 27 15:32:36 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rumpuser.h,v 1.79 2013/04/27 15:01:21 pooka Exp $      */
+/*     $NetBSD: rumpuser.h,v 1.80 2013/04/27 15:32:36 pooka Exp $      */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -28,16 +28,15 @@
 #ifndef _RUMP_RUMPUSER_H_
 #define _RUMP_RUMPUSER_H_
 
+/*
+ * Do not include any headers here!  Implementation must take care of
+ * having stdint or equivalent included before including this header.
+ */
+
 #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
-#include <stdint.h>
-#endif
-
 #define RUMPUSER_VERSION 16
 
 int rumpuser_daemonize_begin(void);



Home | Main Index | Thread Index | Old Index