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

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


It is needed for unlink():
|   CC     savimage.lo
| savimage.c:187:6: waning: implicit declaration of function 'unlink' is invalid in C99 [-Wimplicit-function-declaration]
|                                         unlink(name);
|                                         ^

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

diff --git a/xts5/src/lib/savimage.c b/xts5/src/lib/savimage.c
index 239d172..50ec8e4 100644
--- a/xts5/src/lib/savimage.c
+++ b/xts5/src/lib/savimage.c
@@ -114,6 +114,7 @@ purpose.  It is provided "as is" without express or implied warranty.
 #endif
 
 #include	"stdio.h"
+#include	"unistd.h"
 #include	"xtest.h"
 #include	"X11/Xlib.h"
 #include	"X11/Xutil.h"
-- 
1.7.5.1



More information about the xorg-devel mailing list