diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch')
-rw-r--r-- | meta/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch b/meta/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch new file mode 100644 index 0000000000..cd8bc55842 --- /dev/null +++ b/meta/recipes-graphics/wayland/wayland/disable-macro-checks-not-used-for-scanner.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | disable macro checks not used for scanner | ||
2 | |||
3 | We only build wayland-native for the scanner, so disable the bits we don't | ||
4 | actually need. This avoid build issue on older distro such as Centos 5.x: | ||
5 | | error: 'O_CLOEXEC' undeclared (first use in this function) | ||
6 | | error: sys/timerfd.h: No such file or directory | ||
7 | | error: 'CLOCK_MONOTONIC' undeclared (first use in this function) | ||
8 | | error: 'TFD_CLOEXEC' undeclared (first use in this function) | ||
9 | | error: 'SFD_CLOEXEC' undeclared (first use in this function) | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Ting Liu <b28495@freescale.com> | ||
14 | --- | ||
15 | configure.ac | 20 ++++++++++---------- | ||
16 | 1 file changed, 10 insertions(+), 10 deletions(-) | ||
17 | |||
18 | diff --git a/configure.ac b/configure.ac | ||
19 | --- a/configure.ac | ||
20 | +++ b/configure.ac | ||
21 | @@ -41,16 +41,16 @@ AC_SUBST(GCC_CFLAGS) | ||
22 | |||
23 | AC_CHECK_FUNCS([accept4 mkostemp posix_fallocate]) | ||
24 | |||
25 | -AC_CHECK_DECL(SFD_CLOEXEC,[], | ||
26 | - [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland")], | ||
27 | - [[#include <sys/signalfd.h>]]) | ||
28 | -AC_CHECK_DECL(TFD_CLOEXEC,[], | ||
29 | - [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile wayland")], | ||
30 | - [[#include <sys/timerfd.h>]]) | ||
31 | -AC_CHECK_DECL(CLOCK_MONOTONIC,[], | ||
32 | - [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile wayland")], | ||
33 | - [[#include <time.h>]]) | ||
34 | -AC_CHECK_HEADERS([execinfo.h]) | ||
35 | +##AC_CHECK_DECL(SFD_CLOEXEC,[], | ||
36 | +# [AC_MSG_ERROR("SFD_CLOEXEC is needed to compile wayland")], | ||
37 | +# [[#include <sys/signalfd.h>]]) | ||
38 | +#AC_CHECK_DECL(TFD_CLOEXEC,[], | ||
39 | +# [AC_MSG_ERROR("TFD_CLOEXEC is needed to compile wayland")], | ||
40 | +# [[#include <sys/timerfd.h>]]) | ||
41 | +#AC_CHECK_DECL(CLOCK_MONOTONIC,[], | ||
42 | +# [AC_MSG_ERROR("CLOCK_MONOTONIC is needed to compile wayland")], | ||
43 | +# [[#include <time.h>]]) | ||
44 | +#AC_CHECK_HEADERS([execinfo.h]) | ||
45 | |||
46 | AC_ARG_ENABLE([scanner], | ||
47 | [AC_HELP_STRING([--disable-scanner], | ||
48 | -- | ||
49 | 1.8.3.2 | ||
50 | |||