Hide kev_iovlen() definition under #ifdef KTRACE, fixing build of
kernel configs without KTRACE. Reported by: rpokala Sponsored by: The FreeBSD Foundation MFC after: 4 days
This commit is contained in:
parent
cf724b05ec
commit
bd6532333d
@ -887,6 +887,7 @@ kern_kqueue(struct thread *td, int flags, struct filecaps *fcaps)
|
||||
return (0);
|
||||
}
|
||||
|
||||
#ifdef KTRACE
|
||||
static size_t
|
||||
kev_iovlen(int n, u_int kgio)
|
||||
{
|
||||
@ -895,6 +896,7 @@ kev_iovlen(int n, u_int kgio)
|
||||
return (kgio);
|
||||
return (n * sizeof(struct kevent));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef _SYS_SYSPROTO_H_
|
||||
struct kevent_args {
|
||||
|
Loading…
x
Reference in New Issue
Block a user