aboutsummaryrefslogtreecommitdiff
path: root/gprofng
diff options
context:
space:
mode:
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>2024-07-29 14:15:01 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2024-07-30 12:06:26 -0700
commitc4ffbc564d807cac7bc52ed4617b3ab6f71205a6 (patch)
tree1390f058eb953c4f1d9041492c9860bdf86b9e61 /gprofng
parent4e7b18de44be59e8a85b62aa0d89d0c4a54d0dbe (diff)
downloadbinutils-c4ffbc564d807cac7bc52ed4617b3ab6f71205a6.zip
binutils-c4ffbc564d807cac7bc52ed4617b3ab6f71205a6.tar.gz
binutils-c4ffbc564d807cac7bc52ed4617b3ab6f71205a6.tar.bz2
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.
Diffstat (limited to 'gprofng')
-rw-r--r--gprofng/libcollector/hwprofile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gprofng/libcollector/hwprofile.c b/gprofng/libcollector/hwprofile.c
index cfe0d84..3b7f484 100644
--- a/gprofng/libcollector/hwprofile.c
+++ b/gprofng/libcollector/hwprofile.c
@@ -216,13 +216,13 @@ open_experiment (const char *exp)
params += 2;
break;
}
- params = CALL_UTIL (strchr)(params, ';');
+ params = __collector_strchr (params, ';');
if (params)
params++;
}
if (params == NULL) /* HWC profiling not specified */
return COL_ERROR_HWCINIT;
- char *s = CALL_UTIL (strchr)(params, (int) ';');
+ char *s = __collector_strchr (params, (int) ';');
int sz = s ? s - params : CALL_UTIL (strlen)(params);
char *defstring = (char*) alloca (sz + 1);
CALL_UTIL (strlcpy)(defstring, params, sz + 1);