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

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


It is needed for unlink():
|   CC     verimage.lo
| verimage.c:307:3: warning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration]
|                 unlink(errfile);
|                 ^

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

diff --git a/xts5/src/lib/verimage.c b/xts5/src/lib/verimage.c
index 0db947e..037ead3 100644
--- a/xts5/src/lib/verimage.c
+++ b/xts5/src/lib/verimage.c
@@ -117,6 +117,7 @@ purpose.  It is provided "as is" without express or implied warranty.
 
 #include	"stdio.h"
 #include	"string.h"
+#include	"unistd.h"
 
 #include	"xtest.h"
 #include	"X11/Xlib.h"
-- 
1.7.5.1



More information about the xorg-devel mailing list