svn commit: r297813 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

Steven Hartland smh at FreeBSD.org
Mon Apr 11 08:57:56 UTC 2016


Author: smh
Date: Mon Apr 11 08:57:54 2016
New Revision: 297813
URL: https://svnweb.freebsd.org/changeset/base/297813

Log:
  Only include sysctl in kernel build
  
  Only include sysctl in kernel builds fixing warning about implicit
  declaration of function 'sysctl_handle_int'.
  
  Sponsored by:	Multiplay

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c	Mon Apr 11 07:11:20 2016	(r297812)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c	Mon Apr 11 08:57:54 2016	(r297813)
@@ -48,7 +48,7 @@
 #include <sys/zil_impl.h>
 #include <sys/dsl_userhold.h>
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && defined(_KERNEL)
 #include <sys/sysctl.h>
 #include <sys/types.h>
 #endif
@@ -132,7 +132,7 @@ int zfs_delay_min_dirty_percent = 60;
 uint64_t zfs_delay_scale = 1000 * 1000 * 1000 / 2000;
 
 
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && defined(_KERNEL)
 
 extern int zfs_vdev_async_write_active_max_dirty_percent;
 


More information about the svn-src-head mailing list