From 39dee0d08811945de124a503154bf036939c9ea5 Mon Sep 17 00:00:00 2001 From: rlibby Date: Fri, 13 Dec 2019 10:34:19 +0000 Subject: [PATCH] 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 --- lib/libmemstat/memstat_uma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index 7c292e7ba460..cf30f5f312e5 100644 --- a/lib/libmemstat/memstat_uma.c +++ b/lib/libmemstat/memstat_uma.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include