summaryrefslogtreecommitdiffstats
path: root/patches/DirectFB-1.3.0/generic/old-patches-for-reference/fix_tslib_driver.diff
blob: e01c9f622fe190b41c2d4a2d18f59281030eadfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Luotao Fu <l.fu@pengutronix.de>
Subject: fix include of tslib.c

tslib.c is missing an include of string.h, which causes to compiling error: 
"implicit declaration of function 'strcmp'" This one adds the missing include.
This is fixed in newer versions.

Signed-off-by: Luotao Fu <l.fu@pengutronix.de
---
 inputdrivers/tslib/tslib.c |    1 +
 1 file changed, 1 insertion(+)

Index: inputdrivers/tslib/tslib.c
===================================================================
--- inputdrivers/tslib/tslib.c.orig
+++ inputdrivers/tslib/tslib.c
@@ -32,6 +32,7 @@
 
 #include <stdlib.h>
 #include <stdio.h>
+#include <string.h>
 
 #include <tslib.h>