libmemstat: unbreak build

r355706 added an instance of offsetof() to the UMA private kernel header
file uma_int.h.  Userspace memstat_uma.c includes that header, and
chokes on offsetof() because apparently the definition in sys/types.h is
ifdef _KERNEL.  Now, include sys/stddef.h which has an identical
definition.

Pointyhat to:	rlibby
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Ryan Libby 2019-12-13 10:34:19 +00:00
parent 9825eadf2c
commit 80ee0f4a6b

View File

@ -31,6 +31,7 @@
#include <sys/param.h>
#include <sys/counter.h>
#include <sys/cpuset.h>
#include <sys/stddef.h>
#include <sys/sysctl.h>
#include <vm/uma.h>