]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libmemstat: unbreak build
authorrlibby <rlibby@FreeBSD.org>
Fri, 13 Dec 2019 10:34:19 +0000 (10:34 +0000)
committerrlibby <rlibby@FreeBSD.org>
Fri, 13 Dec 2019 10:34:19 +0000 (10:34 +0000)
commit39dee0d08811945de124a503154bf036939c9ea5
treecca9e7e6ba134a8f4c638c5cb2553956ae86cd74
parentdbf795e374d699ff468ad21c4095cfdb1c9c3936
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