Hide counted_warning(9) under #ifdef _KERNEL braces, to allow building
subr_prf.c in userspace for libsbuf. Sponsored by: The FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
9fe297bbdc
commit
492fe1b774
@ -1196,6 +1196,7 @@ sbuf_hexdump(struct sbuf *sb, const void *ptr, int length, const char *hdr,
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef _KERNEL
|
||||
void
|
||||
counted_warning(unsigned *counter, const char *msg)
|
||||
{
|
||||
@ -1215,3 +1216,4 @@ counted_warning(unsigned *counter, const char *msg)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user