Date: Thu, 20 Jun 2019 09:13:52 -0600 From: Ian Lepore <ian@freebsd.org> To: Alan Somers <asomers@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r349233 - head/sys/sys Message-ID: <54f3bc97cbb485cdcc44b81c82c149ac9e46d42f.camel@freebsd.org> In-Reply-To: <201906201435.x5KEZTqH021513@repo.freebsd.org> References: <201906201435.x5KEZTqH021513@repo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 2019-06-20 at 14:35 +0000, Alan Somers wrote: > Author: asomers > Date: Thu Jun 20 14:35:28 2019 > New Revision: 349233 > URL: https://svnweb.freebsd.org/changeset/base/349233 > > Log: > #include <sys/types.h> from sys/filio.h > > This fixes world build after r349231 > > Reported by: Jenkins > MFC after: 2 weeks > MFC-With: 349231 > Sponsored by: The FreeBSD Foundation > > Modified: > head/sys/sys/filio.h > > Modified: head/sys/sys/filio.h > ===================================================================== > ========= > --- head/sys/sys/filio.h Thu Jun 20 14:34:45 2019 (r349232) > +++ head/sys/sys/filio.h Thu Jun 20 14:35:28 2019 (r349233) > @@ -40,6 +40,7 @@ > #ifndef _SYS_FILIO_H_ > #define _SYS_FILIO_H_ > > +#include <sys/types.h> > #include <sys/ioccom.h> > > /* Generic file-descriptor ioctl's. */ > I wonder... is this one of those situations where it is better to use __int64_t in the struct, then #include <sys/_types.h>? I think the net effect there would be less pollution with other types? I've never seen written guidance about when to use the __names and _types.h, but I've always had the general impression that if you have to include a header from another system header, it's better to use the _header.h if it exists. -- Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?54f3bc97cbb485cdcc44b81c82c149ac9e46d42f.camel>