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 <ni...@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
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to