summaryrefslogtreecommitdiffstats
path: root/patches/xorg-server-1.20.5/0002-xf86bigfont-always-include-unistd.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/xorg-server-1.20.5/0002-xf86bigfont-always-include-unistd.h.patch')
-rw-r--r--patches/xorg-server-1.20.5/0002-xf86bigfont-always-include-unistd.h.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/patches/xorg-server-1.20.5/0002-xf86bigfont-always-include-unistd.h.patch b/patches/xorg-server-1.20.5/0002-xf86bigfont-always-include-unistd.h.patch
new file mode 100644
index 000000000..f34b1eb18
--- /dev/null
+++ b/patches/xorg-server-1.20.5/0002-xf86bigfont-always-include-unistd.h.patch
@@ -0,0 +1,37 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+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 <m.olbrich@pengutronix.de>
+---
+ 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 <sys/types.h>
++#include <unistd.h>
+ #ifdef HAS_SHM
+ #ifdef SVR4
+ #include <sys/sysmacros.h>
+@@ -51,7 +52,6 @@
+ #include <sys/shm.h>
+ #include <sys/stat.h>
+ #include <stdlib.h>
+-#include <unistd.h>
+ #include <time.h>
+ #include <errno.h>
+ #endif