]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gprofng: 32018 Compilation of binutils 2.43 failed on CentOS 6
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Mon, 29 Jul 2024 21:15:01 +0000 (14:15 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Thu, 1 Aug 2024 18:30:27 +0000 (11:30 -0700)
commit714bf4f222c35f8bde9c7b813151f5b52a79731a
tree37fc470f0f68185b65e3c8b7ada828f43daaefd3
parent5def238cf9e089e3712d9e01c425ef55fed48805
gprofng: 32018 Compilation of binutils 2.43 failed on CentOS 6

strchr is redefined as a macro in /usr/include/bits/string.h on CentOS 6/7.
In this case, we may not use our CALL_UTIL macro for strchr.
Use __collector_strchr instead of "CALL_UTIL (strchr)".

gprofng/ChangeLog
2024-07-28  Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

PR 32018
* libcollector/hwprofile.c (open_experiment): Use __collector_strchr.
gprofng/libcollector/hwprofile.c