mirror of
https://github.com/opnsense/src.git
synced 2026-06-14 19:20:18 -04:00
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
This commit is contained in:
parent
1da2e1e353
commit
7bc47b4ea3
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue