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

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


It is needed for strcmp():
|   CC     checkfont.lo
| checkfont.c:492:16: warning: implicit declaration of function 'strcmp' is invalid in C99 [-Wimplicit-function-declaration]
|                                 if (str && strcmp(teststr, str) != 0) {
|                                            ^

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

diff --git a/xts5/src/lib/checkfont.c b/xts5/src/lib/checkfont.c
index e1c5624..094972d 100644
--- a/xts5/src/lib/checkfont.c
+++ b/xts5/src/lib/checkfont.c
@@ -118,6 +118,7 @@ purpose.  It is provided "as is" without express or implied warranty.
 
 #include	"stdlib.h"
 #include	"stdio.h"
+#include	"string.h"
 #include	"xtest.h"
 #include	"X11/Xlib.h"
 #include	"X11/Xutil.h"
-- 
1.7.5.1



More information about the xorg-devel mailing list