]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
wayland: fix musl build issue
authorRahul Bedarkar <rahul.bedarkar@imgtec.com>
Mon, 15 Aug 2016 06:15:42 +0000 (11:45 +0530)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 17 Aug 2016 06:35:54 +0000 (08:35 +0200)
commit562a587d009e50f296c5746b2e0a37f9583db1d1
tree6f391b45e2ea2ceee565f7544a1cf7f641865c62
parent850e74c3639733986ff40b96fbca7d355aee738c
wayland: fix musl build issue

With musl C library, we see following build failure.

  src/scanner.c: In function 'find_enumeration':
  src/scanner.c:811:2: error: unknown type name 'uint'
    uint idx = 0, j;
    ^

uint is defined in <sys/types.h> header. It is usually included by <stdlib.h>
but in musl stdlib.h doesn't include it.

This patch adds upstream patch where uint32_t is used instead of uint.

Fixes:

  http://autobuild.buildroot.net/results/fcf/fcf6dd3bd31f92eadbcae17338e5887a23e43ff9/

Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/wayland/0002-scanner-Use-uint32_t-instead-of-uint.patch [new file with mode: 0644]