[Mesa-stable] [Mesa-dev] [PATCH] loader: include <sys/stat.h> for non-sysfs builds
Emil Velikov
emil.l.velikov at gmail.com
Wed Mar 11 14:44:01 PDT 2015
On 11 March 2015 at 20:50, Ian Romanick <idr at freedesktop.org> wrote:
> On 03/11/2015 12:12 PM, Emil Velikov wrote:
>> Required by fstat(), otherwise we'll error out due to implicit function
>> declaration.
>
> Alternate suggestion... include unistd.h unconditionally. I see that's
> already in the #ifdef HAVE_LIBUDEV path. Does that work too?
>
Perhaps the commit message is a bit confusing, but your suggestion
does not parse here. How does the following sound ?
When building with libudev (non-sysfs) we don't include sys/stat.h
thus we error out due to the implicit declaration of the function
fstat().
-Emil
More information about the mesa-stable
mailing list