diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0001-statx-fix-compile-errors.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0001-statx-fix-compile-errors.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0001-statx-fix-compile-errors.patch b/meta/recipes-extended/ltp/ltp/0001-statx-fix-compile-errors.patch new file mode 100644 index 0000000000..c4fd8d0223 --- /dev/null +++ b/meta/recipes-extended/ltp/ltp/0001-statx-fix-compile-errors.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | From a945304b6a2286d0665c70250cc5475eb07fd21e Mon Sep 17 00:00:00 2001 | ||
2 | From: Thadeu Lima de Souza Cascardo <cascardo@canonical.com> | ||
3 | Date: Wed, 26 Sep 2018 11:15:45 -0300 | ||
4 | Subject: [PATCH] statx: fix compile errors | ||
5 | |||
6 | struct statx is only defined in sys/stat.h when _GNU_SOURCE is defined. | ||
7 | The testcases do define _GNU_SOURCE, but not the m4 struct check. | ||
8 | |||
9 | Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com> | ||
10 | Acked-by: Cyril Hrubis <chrubis@suse.cz> | ||
11 | --- | ||
12 | m4/ltp-statx.m4 | 9 +++++++-- | ||
13 | 1 file changed, 7 insertions(+), 2 deletions(-) | ||
14 | |||
15 | diff --git a/m4/ltp-statx.m4 b/m4/ltp-statx.m4 | ||
16 | index 44303d30c..5f79a94cd 100644 | ||
17 | --- a/m4/ltp-statx.m4 | ||
18 | +++ b/m4/ltp-statx.m4 | ||
19 | @@ -23,6 +23,11 @@ dnl | ||
20 | AC_DEFUN([LTP_CHECK_STATX],[ | ||
21 | AC_CHECK_FUNCS(statx,,,[[#include <sys/stat.h>]]) | ||
22 | AC_CHECK_HEADER(linux/fs.h,,,) | ||
23 | -AC_CHECK_TYPES([struct statx],,,[[#include <sys/stat.h>]]) | ||
24 | -AC_CHECK_TYPES([struct statx_timestamp],,,[[#include <sys/stat.h>]]) | ||
25 | +AC_CHECK_TYPES([struct statx],,,[[ | ||
26 | + #define _GNU_SOURCE | ||
27 | + #include <sys/stat.h> | ||
28 | +]]) | ||
29 | +AC_CHECK_TYPES([struct statx_timestamp],,,[[ | ||
30 | + #define _GNU_SOURCE | ||
31 | + #include <sys/stat.h>]]) | ||
32 | ]) | ||
33 | -- | ||
34 | 2.19.1 | ||