[PATCH 6/9] Add missing <unistd.h> include

Ben Gamari bgamari.foss at gmail.com
Sun Jun 14 00:36:35 PDT 2009


Fix compiler warning,

Delay.c: In function ‘xf86UDelay’:
Delay.c:21: warning: implicit declaration of function ‘usleep’
Delay.c:21: warning: nested extern declaration of ‘usleep’
---
 hw/xfree86/os-support/misc/Delay.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/os-support/misc/Delay.c b/hw/xfree86/os-support/misc/Delay.c
index 35ced8c..e7e3b4d 100644
--- a/hw/xfree86/os-support/misc/Delay.c
+++ b/hw/xfree86/os-support/misc/Delay.c
@@ -2,6 +2,7 @@
 #include <xorg-config.h>
 #endif
 
+#include <unistd.h>
 #include <X11/X.h>
 #include "xf86.h"
 #include "xf86Priv.h"
-- 
1.6.3.1




More information about the xorg mailing list