summaryrefslogtreecommitdiff
path: root/user/oprofile/posixise.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-11 00:38:25 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-10-11 00:38:25 +0000
commit3c5a215212a76932481c316d1259f4dc15c061fa (patch)
tree766d1328907a52e5ea6c5553b87f5d91b37feedf /user/oprofile/posixise.patch
parent693e8657612bfe74dacc0e5372938e2683fe4984 (diff)
downloadpackages-3c5a215212a76932481c316d1259f4dc15c061fa.tar.gz
packages-3c5a215212a76932481c316d1259f4dc15c061fa.tar.bz2
packages-3c5a215212a76932481c316d1259f4dc15c061fa.tar.xz
packages-3c5a215212a76932481c316d1259f4dc15c061fa.zip
user/oprofile: fix build on ... most arches, thx @Thalheim
Diffstat (limited to 'user/oprofile/posixise.patch')
-rw-r--r--user/oprofile/posixise.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/oprofile/posixise.patch b/user/oprofile/posixise.patch
index dd2ead122..85e064b8c 100644
--- a/user/oprofile/posixise.patch
+++ b/user/oprofile/posixise.patch
@@ -41,3 +41,14 @@
errno = 0;
if (nftw(previous_sampledir.c_str(), __delete_old_previous_sample_data, 32, flags) !=0 &&
errno != ENOENT) {
+--- oprofile-1.3.0/libop/op_events.c.old 2018-01-18 16:46:48.000000000 +0000
++++ oprofile-1.3.0/libop/op_events.c 2018-10-11 00:34:04.362677027 +0000
+@@ -83,7 +83,7 @@
+ static u64 parse_long_hex(char const * str)
+ {
+ u64 value;
+- if (sscanf(str, "%Lx", &value) != 1)
++ if (sscanf(str, "%llx", &value) != 1)
+ parse_error("expected long hexadecimal value");
+
+ fflush(stderr);