[PATCH 1/9] Add missing <unistd.h> include
Ben Gamari
bgamari.foss at gmail.com
Sun Jun 14 00:36:30 PDT 2009
Fix compiler error,
xf86Init.c: In function ‘ddxProcessArgument’:
xf86Init.c:1518: warning: implicit declaration of function ‘geteuid’
xf86Init.c:1518: warning: nested extern declaration of ‘geteuid’
xf86Init.c:1518: warning: implicit declaration of function ‘getuid’
xf86Init.c:1518: warning: nested extern declaration of ‘getuid’
---
hw/xfree86/common/xf86Init.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index 37380d9..27fceb4 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -37,6 +37,7 @@
#include <stdlib.h>
#include <errno.h>
#include <time.h>
+#include <unistd.h>
#undef HAS_UTSNAME
#if !defined(WIN32)
--
1.6.3.1
More information about the xorg
mailing list