Source-Changes-HG archive

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

[src/trunk]: src/sys/rump Protect __KERNEL_RCSID. It isn't available when com...



details:   https://anonhg.NetBSD.org/src/rev/a9d58b5dcae9
branches:  trunk
changeset: 449841:a9d58b5dcae9
user:      bad <bad%NetBSD.org@localhost>
date:      Tue Mar 26 08:56:17 2019 +0000

description:
Protect __KERNEL_RCSID. It isn't available when compile rumpkernels under e.g. Linux.

diffstat:

 sys/rump/dev/lib/libnetsmb/netsmb_user.c |  6 ++++--
 sys/rump/dev/lib/libugenhc/ugenhc_user.c |  6 ++++--
 sys/rump/net/lib/libshmif/shmif_user.c   |  6 ++++--
 sys/rump/net/lib/libsockin/sockin_user.c |  6 ++++--
 sys/rump/net/lib/libvirtif/virtif_user.c |  6 ++++--
 5 files changed, 20 insertions(+), 10 deletions(-)

diffs (100 lines):

diff -r 69707caadcb8 -r a9d58b5dcae9 sys/rump/dev/lib/libnetsmb/netsmb_user.c
--- a/sys/rump/dev/lib/libnetsmb/netsmb_user.c  Tue Mar 26 08:01:21 2019 +0000
+++ b/sys/rump/dev/lib/libnetsmb/netsmb_user.c  Tue Mar 26 08:56:17 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netsmb_user.c,v 1.5 2019/01/27 02:08:48 pgoyette Exp $ */
+/*     $NetBSD: netsmb_user.c,v 1.6 2019/03/26 08:56:17 bad Exp $      */
 
 /*
  * Copyright (c) 2014 Takeshi Nakayama.
@@ -26,7 +26,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netsmb_user.c,v 1.5 2019/01/27 02:08:48 pgoyette Exp $");
+#ifdef __KERNEL_RCSID
+__KERNEL_RCSID(0, "$NetBSD: netsmb_user.c,v 1.6 2019/03/26 08:56:17 bad Exp $");
+#endif
 
 #ifndef _KERNEL
 #include <stddef.h>
diff -r 69707caadcb8 -r a9d58b5dcae9 sys/rump/dev/lib/libugenhc/ugenhc_user.c
--- a/sys/rump/dev/lib/libugenhc/ugenhc_user.c  Tue Mar 26 08:01:21 2019 +0000
+++ b/sys/rump/dev/lib/libugenhc/ugenhc_user.c  Tue Mar 26 08:56:17 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ugenhc_user.c,v 1.3 2019/01/27 02:08:49 pgoyette Exp $ */
+/*     $NetBSD: ugenhc_user.c,v 1.4 2019/03/26 08:56:17 bad Exp $      */
 
 /*
  * Copyright (c) 2007-2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugenhc_user.c,v 1.3 2019/01/27 02:08:49 pgoyette Exp $");
+#ifdef __KERNEL_RCSID
+__KERNEL_RCSID(0, "$NetBSD: ugenhc_user.c,v 1.4 2019/03/26 08:56:17 bad Exp $");
+#endif
 
 #ifndef _KERNEL
 #include <sys/types.h>
diff -r 69707caadcb8 -r a9d58b5dcae9 sys/rump/net/lib/libshmif/shmif_user.c
--- a/sys/rump/net/lib/libshmif/shmif_user.c    Tue Mar 26 08:01:21 2019 +0000
+++ b/sys/rump/net/lib/libshmif/shmif_user.c    Tue Mar 26 08:56:17 2019 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: shmif_user.c,v 1.4 2019/01/27 02:08:49 pgoyette Exp $ */
+/*      $NetBSD: shmif_user.c,v 1.5 2019/03/26 08:56:17 bad Exp $      */
 
 /*-
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: shmif_user.c,v 1.4 2019/01/27 02:08:49 pgoyette Exp $");
+#ifdef __KERNEL_RCSID
+__KERNEL_RCSID(0, "$NetBSD: shmif_user.c,v 1.5 2019/03/26 08:56:17 bad Exp $");
+#endif
 
 #ifndef _KERNEL
 #include <sys/types.h>
diff -r 69707caadcb8 -r a9d58b5dcae9 sys/rump/net/lib/libsockin/sockin_user.c
--- a/sys/rump/net/lib/libsockin/sockin_user.c  Tue Mar 26 08:01:21 2019 +0000
+++ b/sys/rump/net/lib/libsockin/sockin_user.c  Tue Mar 26 08:56:17 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sockin_user.c,v 1.3 2019/01/27 02:08:50 pgoyette Exp $ */
+/*     $NetBSD: sockin_user.c,v 1.4 2019/03/26 08:56:17 bad Exp $      */
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sockin_user.c,v 1.3 2019/01/27 02:08:50 pgoyette Exp $");
+#ifdef __KERNEL_RCSID
+__KERNEL_RCSID(0, "$NetBSD: sockin_user.c,v 1.4 2019/03/26 08:56:17 bad Exp $");
+#endif
 
 /* for struct msghdr content visibility */
 #define _XOPEN_SOURCE 4
diff -r 69707caadcb8 -r a9d58b5dcae9 sys/rump/net/lib/libvirtif/virtif_user.c
--- a/sys/rump/net/lib/libvirtif/virtif_user.c  Tue Mar 26 08:01:21 2019 +0000
+++ b/sys/rump/net/lib/libvirtif/virtif_user.c  Tue Mar 26 08:56:17 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: virtif_user.c,v 1.5 2019/01/27 02:08:50 pgoyette Exp $ */
+/*     $NetBSD: virtif_user.c,v 1.6 2019/03/26 08:56:17 bad Exp $      */
 
 /*
  * Copyright (c) 2013 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,9 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtif_user.c,v 1.5 2019/01/27 02:08:50 pgoyette Exp $");
+#ifdef __KERNEL_RCSID
+__KERNEL_RCSID(0, "$NetBSD: virtif_user.c,v 1.6 2019/03/26 08:56:17 bad Exp $");
+#endif
 
 #ifndef _KERNEL
 #include <sys/types.h>



Home | Main Index | Thread Index | Old Index