3b1b84d1cd4db3e715805b886315730c6f1a651d
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / x11r7 / xdriver_xf86-video-imx / 0003-support-glibc-2.20.patch
1 Fix build errors seen with glibc 2.20
2
3 /home/ubuntu/work/upstream/openembedded-core/build/tmp-glibc/sysroots/imx53qsb/usr/include/xorg/os.h:579:1: error: expected identifier or '(' before '__extension__'
4  strndup(const char *str, size_t n);
5  ^
6
7 Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 Upstream-Status: Pending
9 Index: xserver-xorg-video-imx-11.09.01/src/imx_accel.c
10 ===================================================================
11 --- xserver-xorg-video-imx-11.09.01.orig/src/imx_accel.c        2011-07-26 14:22:47.000000000 -0700
12 +++ xserver-xorg-video-imx-11.09.01/src/imx_accel.c     2014-08-29 15:54:43.648070587 -0700
13 @@ -21,6 +21,7 @@
14   * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
15   * SOFTWARE.
16   */
17 +#include <xorg-server.h>
18  
19  #include <stdint.h>
20  #include "xf86.h"
21 Index: xserver-xorg-video-imx-11.09.01/src/imx_exa_offscreen.c
22 ===================================================================
23 --- xserver-xorg-video-imx-11.09.01.orig/src/imx_exa_offscreen.c        2014-08-29 15:26:31.992070587 -0700
24 +++ xserver-xorg-video-imx-11.09.01/src/imx_exa_offscreen.c     2014-08-29 15:54:54.632070587 -0700
25 @@ -53,7 +53,7 @@
26   * When allocating, the contiguous block of areas with the minimum eviction
27   * cost is found and evicted in order to make room for the new allocation.
28   */
29 -
30 +#include <xorg-server.h>
31  
32  #include "xf86.h"
33  #include "exa.h"
34 Index: xserver-xorg-video-imx-11.09.01/src/imx_exa_z160.c
35 ===================================================================
36 --- xserver-xorg-video-imx-11.09.01.orig/src/imx_exa_z160.c     2014-08-29 15:26:31.992070587 -0700
37 +++ xserver-xorg-video-imx-11.09.01/src/imx_exa_z160.c  2014-08-29 15:54:36.056070587 -0700
38 @@ -21,6 +21,7 @@
39   * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
40   * SOFTWARE.
41   */
42 +#include <xorg-server.h>
43  
44  #include "xf86.h"
45  #include "xf86_OSproc.h"
46 Index: xserver-xorg-video-imx-11.09.01/src/imx_ext.c
47 ===================================================================
48 --- xserver-xorg-video-imx-11.09.01.orig/src/imx_ext.c  2014-08-29 15:26:32.064070587 -0700
49 +++ xserver-xorg-video-imx-11.09.01/src/imx_ext.c       2014-08-29 15:55:18.048070587 -0700
50 @@ -21,6 +21,7 @@
51   * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 
52   * SOFTWARE.
53   */
54 +#include <xorg-server.h>
55  
56  #include <X11/X.h>
57  #include <X11/Xproto.h>