Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2019 10:34:19 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355710 - head/lib/libmemstat
Message-ID:  <201912131034.xBDAYJMI049483@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201912131034.xBDAYJMI049483>