diff options
author | smh <smh@FreeBSD.org> | 2016-04-11 08:57:54 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2016-04-11 08:57:54 +0000 |
commit | d86049c572ce6a7e9e7f091df5c238255330e31a (patch) | |
tree | ebe735de07e884ec21ec9aba325f31ccfc31ae20 | |
parent | 05bba575e35cd17f6254ead7db5a026674d07c68 (diff) | |
download | FreeBSD-src-d86049c572ce6a7e9e7f091df5c238255330e31a.zip FreeBSD-src-d86049c572ce6a7e9e7f091df5c238255330e31a.tar.gz |
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
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c index 30a0710..95e741f 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c @@ -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; |