Source-Changes-HG archive

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

[src/trunk]: src/sys/sys friendlier to _KMEMUSER



details:   https://anonhg.NetBSD.org/src/rev/d1006ed94cb3
branches:  trunk
changeset: 350488:d1006ed94cb3
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 12 18:50:17 2017 +0000

description:
friendlier to _KMEMUSER

diffstat:

 sys/sys/file.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7138709c8d95 -r d1006ed94cb3 sys/sys/file.h
--- a/sys/sys/file.h    Thu Jan 12 18:42:53 2017 +0000
+++ b/sys/sys/file.h    Thu Jan 12 18:50:17 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: file.h,v 1.79 2015/05/30 20:09:47 joerg Exp $  */
+/*     $NetBSD: file.h,v 1.80 2017/01/12 18:50:17 christos Exp $       */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
 #include <sys/fcntl.h>
 #include <sys/unistd.h>
 
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_KMEMUSER)
 #include <sys/queue.h>
 #include <sys/mutex.h>
 #include <sys/condvar.h>
@@ -148,7 +148,7 @@
 #define f_bpf          f_undata.fd_bpf
 #define f_fcrypt       f_undata.fd_fcrypt
 #define f_iscsi                f_undata.fd_iscsi
-#endif
+#endif /* _KERNEL || _KMEMUSER */
 
 /*
  * Descriptor types.



Home | Main Index | Thread Index | Old Index