Module Name:    src
Committed By:   christos
Date:           Thu Jan 12 18:50:17 UTC 2017

Modified Files:
        src/sys/sys: file.h

Log Message:
friendlier to _KMEMUSER


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/sys/file.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/sys/file.h
diff -u src/sys/sys/file.h:1.79 src/sys/sys/file.h:1.80
--- src/sys/sys/file.h:1.79	Sat May 30 16:09:47 2015
+++ src/sys/sys/file.h	Thu Jan 12 13:50:17 2017
@@ -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 @@ struct file {
 #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.

Reply via email to