diff options
author | Changqing Li <changqing.li@windriver.com> | 2018-07-18 15:31:24 +0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-07-20 16:07:12 -0700 |
commit | 5d6d1bb305c197497adee1d7367b19b9681d746b (patch) | |
tree | 0b57523afd46be8b2a23d887fde1e7a164bd45b6 /meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch | |
parent | 1c2c30c1439c64fe8c8c68e5ceeadf4148befaa4 (diff) | |
download | meta-openembedded-contrib-5d6d1bb305c197497adee1d7367b19b9681d746b.tar.gz |
oprofile: 1.1.0 -> 1.1.2
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch')
-rw-r--r-- | meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch b/meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch new file mode 100644 index 0000000000..c21a105759 --- /dev/null +++ b/meta-oe/recipes-kernel/oprofile/oprofile/0001-fix-musl-libc-compile-error.patch @@ -0,0 +1,30 @@ +From 512f1b3a4727a3a18f8fa55f196eedcacdd4a872 Mon Sep 17 00:00:00 2001 +From: Changqing Li <changqing.li@windriver.com> +Date: Wed, 18 Jul 2018 13:01:03 +0800 +Subject: [PATCH] fix musl libc compile error + +use op_basename instead of basename to fix below error: +../../oprofile-1.2.0/pp/oparchive.cpp:264:20: error: 'basename' +was not declared in this scope + +Signed-off-by: Changqing Li <changqing.li@windriver.com> +--- + pp/oparchive.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pp/oparchive.cpp b/pp/oparchive.cpp +index 6221e14..274152b 100644 +--- a/pp/oparchive.cpp ++++ b/pp/oparchive.cpp +@@ -261,7 +261,7 @@ int oparchive(options::spec const & spec) + /* determine the session name of sample file */ + int offset = sample_name.find('{'); + string base_samples_dir = sample_name.substr(0, offset-1); +- string session = basename(base_samples_dir.c_str()); ++ string session = op_basename(base_samples_dir.c_str()); + /* Get rid of the the archive_path from the name */ + string sample_base = sample_name.substr(offset); + string sample_archive_file = dest_samples_dir + "/" + session + "/" + sample_base; +-- +2.7.4 + |