[PATCH xf86-video-mga 1/9] include unistd.h for usleep()

Nicolas Kaiser nikai at nikai.net
Wed Jun 8 01:59:10 PDT 2011


Silences compile warning
"src/mga_vga.c:65: warning: implicit declaration of function 'usleep'"

Additionally silences Gentoo QA warning
* QA Notice: Package has poor programming practices which may compile
*            fine but exhibit random runtime failures.

Signed-off-by: Nicolas Kaiser <nikai at nikai.net>
---
 src/mga_vga.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mga_vga.c b/src/mga_vga.c
index 0ac8bf7..255101d 100644
--- a/src/mga_vga.c
+++ b/src/mga_vga.c
@@ -11,6 +11,8 @@
 #include "mga.h"
 #include "mga_reg.h"
 
+#include <unistd.h>
+
 #define TEXT_AMOUNT 16384
 #define FONT_AMOUNT (8*8192)
 
-- 
1.7.5.3


More information about the xorg-devel mailing list