From: Emil Velikov Date: Tue, 28 Jan 2014 10:15:17 +0000 (+0000) Subject: loader: include dlfcn.h when building with HAVE_LIBUDEV X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=61c825e862c3215f0611a6c46d6530438d72028c;p=mesa.git loader: include dlfcn.h when building with HAVE_LIBUDEV The code depending on the definitions is already wrapped in the same conditional so go ahead and wrap the include. Otherwise we'll brake compilation on platforms that are missing the header. Add assert.h in there as well, as it is introduced and used in the same fashon. Cc: Eric Anholt Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74122 Signed-off-by: Emil Velikov --- diff --git a/src/loader/loader.c b/src/loader/loader.c index 6d179a1da96..ee4c1e08db7 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -67,8 +67,10 @@ #include #include #include +#ifdef HAVE_LIBUDEV #include #include +#endif #include "loader.h" #ifndef __NOT_HAVE_DRM_H