svn commit: r355710 - head/lib/libmemstat

Ryan Libby rlibby at FreeBSD.org
Fri Dec 13 10:34:20 UTC 2019


Author: rlibby
Date: Fri Dec 13 10:34:19 2019
New Revision: 355710
URL: https://svnweb.freebsd.org/changeset/base/355710

Log:
  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

Modified:
  head/lib/libmemstat/memstat_uma.c

Modified: head/lib/libmemstat/memstat_uma.c
==============================================================================
--- head/lib/libmemstat/memstat_uma.c	Fri Dec 13 09:32:16 2019	(r355709)
+++ head/lib/libmemstat/memstat_uma.c	Fri Dec 13 10:34:19 2019	(r355710)
@@ -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>


More information about the svn-src-head mailing list