Skip to content

Commit bd9860b

Browse files
committed
perf tools: Use linux/ctype.h in more places
There were a few places where we still were using the libc version of ctype.h, switch to the one in tools/lib/ctype.c that the rest of perf uses. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-wa4nz4kt61eze88eprk20tfd@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 3052ba5 commit bd9860b

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎tools/perf/arch/s390/util/header.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <unistd.h>
1212
#include <stdio.h>
1313
#include <string.h>
14-
#include <ctype.h>
14+
#include <linux/ctype.h>
1515

1616
#include "../../util/header.h"
1717
#include "../../util/util.h"

‎tools/perf/util/metricgroup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "pmu-events/pmu-events.h"
1818
#include "strlist.h"
1919
#include <assert.h>
20-
#include <ctype.h>
20+
#include <linux/ctype.h>
2121

2222
struct metric_event *metricgroup__lookup(struct rblist *metric_events,
2323
struct perf_evsel *evsel,

‎tools/perf/util/time-utils.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <errno.h>
88
#include <inttypes.h>
99
#include <math.h>
10-
#include <ctype.h>
10+
#include <linux/ctype.h>
1111

1212
#include "perf.h"
1313
#include "debug.h"

0 commit comments

Comments
 (0)