From 35afdbaee8fb3f7af3a5186a621c67dd2141ba57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Tue, 7 Feb 2017 08:43:09 +0100 Subject: [PATCH] loader: include unistd.h unconditionally for geteuid Fixes: 3f462050c ("loader: Add an environment variable to override driver name choice. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99701 --- src/loader/loader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/loader/loader.c b/src/loader/loader.c index 4825151..862f0c0 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -41,9 +41,10 @@ #endif #include "loader.h" +#include + #ifdef HAVE_LIBDRM #include -#include #include #ifdef USE_DRICONF #include "xmlconfig.h" -- 2.9.3