[PATCH:xts 15/16] xts5: Fix missing unistd.h include.

Cyril Brulebois kibi at debian.org
Wed May 25 04:00:24 PDT 2011


It is needed for alarm():
|   CC     settimeout.lo
| settimeout.c:155:2: warning: implicit declaration of function 'alarm' is invalid in C99 [-Wimplicit-function-declaration]
|         alarm((unsigned long)to);
|         ^

Signed-off-by: Cyril Brulebois <kibi at debian.org>
---
 xts5/src/lib/settimeout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xts5/src/lib/settimeout.c b/xts5/src/lib/settimeout.c
index 621f7f0..8d37e0f 100644
--- a/xts5/src/lib/settimeout.c
+++ b/xts5/src/lib/settimeout.c
@@ -112,6 +112,7 @@ purpose.  It is provided "as is" without express or implied warranty.
 #include	<stdlib.h>
 #include	"xtest.h"
 #include	<signal.h>
+#include	<unistd.h>
 
 static int 	Alarm_set;
 
-- 
1.7.5.1



More information about the xorg-devel mailing list