From: Michael Olbrich Date: Thu, 28 May 2015 23:47:37 +0200 Subject: [PATCH] xf86bigfont: always include unistd.h Otherwise compiling can fail with: xf86bigfont.c: In function 'ProcXF86BigfontQueryVersion': xf86bigfont.c:287:9: error: implicit declaration of function 'geteuid' [-Werror=implicit-function-declaration] xf86bigfont.c:287:9: warning: nested extern declaration of 'geteuid' [-Wnested-externs] xf86bigfont.c:288:9: error: implicit declaration of function 'getegid' [-Werror=implicit-function-declaration] xf86bigfont.c:288:9: warning: nested extern declaration of 'getegid' [-Wnested-externs] Signed-off-by: Michael Olbrich --- Xext/xf86bigfont.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xext/xf86bigfont.c b/Xext/xf86bigfont.c index 529595bb7544..91c733c86fcd 100644 --- a/Xext/xf86bigfont.c +++ b/Xext/xf86bigfont.c @@ -39,6 +39,7 @@ #endif #include +#include #ifdef HAS_SHM #ifdef SVR4 #include @@ -51,7 +52,6 @@ #include #include #include -#include #include #include #endif