python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ltp-testsuite / 0002-uClibc-ng-has-no-profil-support.patch
blobc1496037c16b3ef71da5e8c6316147b6f2634cfa
1 From 4ab7dc5fd201318e2a62dbd3ba1680b97034ec65 Mon Sep 17 00:00:00 2001
2 From: Erico Nunes <nunes.erico@gmail.com>
3 Date: Fri, 30 Sep 2016 17:45:03 +0200
4 Subject: [PATCH] uClibc-ng has no profil() support
6 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
7 [Erico: Rebase for ltp 20160920]
8 Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
9 ---
10 testcases/kernel/syscalls/profil/profil01.c | 9 +++++++++
11 1 file changed, 9 insertions(+)
13 diff --git a/testcases/kernel/syscalls/profil/profil01.c b/testcases/kernel/syscalls/profil/profil01.c
14 index 2fc47aa..f8afd57 100644
15 --- a/testcases/kernel/syscalls/profil/profil01.c
16 +++ b/testcases/kernel/syscalls/profil/profil01.c
17 @@ -37,6 +37,9 @@
18 #define PROFIL_BUFLEN (32*1024)
20 char *TCID = "profil01";
22 +#if !defined(__UCLIBC__)
24 int TST_TOTAL = 1;
26 static volatile sig_atomic_t profil_done;
27 @@ -124,3 +127,9 @@ int main(int ac, char *av[])
29 tst_exit();
31 +#else /* systems that dont support profil */
32 +int main(void)
34 + tst_brkm(TCONF, NULL, "system doesn't have profil support");
36 +#endif
37 --
38 2.7.4