diff options
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 68fe157d72fb..9de2329dd44d 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -39,10 +39,6 @@ | |||
39 | /* Approximation of the length of the decimal representation of this type. */ | 39 | /* Approximation of the length of the decimal representation of this type. */ |
40 | #define decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) | 40 | #define decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) |
41 | 41 | ||
42 | #if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__USLC__) && !defined(_M_UNIX) | ||
43 | #define _XOPEN_SOURCE 600 /* glibc2 and AIX 5.3L need 500, OpenBSD needs 600 for S_ISLNK() */ | ||
44 | #define _XOPEN_SOURCE_EXTENDED 1 /* AIX 5.3L needs this */ | ||
45 | #endif | ||
46 | #define _ALL_SOURCE 1 | 42 | #define _ALL_SOURCE 1 |
47 | #define _GNU_SOURCE 1 | 43 | #define _GNU_SOURCE 1 |
48 | #define _BSD_SOURCE 1 | 44 | #define _BSD_SOURCE 1 |
@@ -83,6 +79,7 @@ | |||
83 | #include <inttypes.h> | 79 | #include <inttypes.h> |
84 | #include "../../../include/linux/magic.h" | 80 | #include "../../../include/linux/magic.h" |
85 | 81 | ||
82 | |||
86 | #ifndef NO_ICONV | 83 | #ifndef NO_ICONV |
87 | #include <iconv.h> | 84 | #include <iconv.h> |
88 | #endif | 85 | #endif |
@@ -310,6 +307,7 @@ static inline int has_extension(const char *filename, const char *ext) | |||
310 | #undef isspace | 307 | #undef isspace |
311 | #undef isdigit | 308 | #undef isdigit |
312 | #undef isalpha | 309 | #undef isalpha |
310 | #undef isprint | ||
313 | #undef isalnum | 311 | #undef isalnum |
314 | #undef tolower | 312 | #undef tolower |
315 | #undef toupper | 313 | #undef toupper |