[PATCH:xts 10/16] xts5: Fix missing unistd.h include.
Cyril Brulebois
kibi at debian.org
Wed May 25 04:00:19 PDT 2011
It's needed for sleep():
| CC gettime.lo
| gettime.c:159:23: warning: implicit declaration of function 'sleep' is invalid in C99 [-Wimplicit-function-declaration]
| for (i=0; i<10; i++, sleep(2)) {
| ^
Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
xts5/src/lib/gettime.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/xts5/src/lib/gettime.c b/xts5/src/lib/gettime.c
index 2fdd505..e08b659 100644
--- a/xts5/src/lib/gettime.c
+++ b/xts5/src/lib/gettime.c
@@ -115,6 +115,7 @@ purpose. It is provided "as is" without express or implied warranty.
#include "X11/Xlib.h"
#include "X11/Xutil.h"
#include "X11/Xatom.h"
+#include "unistd.h"
#include "xtest.h"
#include "xtestlib.h"
#include "pixval.h"
--
1.7.5.1
More information about the xorg-devel
mailing list