diff options
Diffstat (limited to 'tools/perf/util/util.h')
-rw-r--r-- | tools/perf/util/util.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 01434509c2e9..9496365da3d7 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -68,4 +68,14 @@ extern bool perf_singlethreaded; | |||
68 | void perf_set_singlethreaded(void); | 68 | void perf_set_singlethreaded(void); |
69 | void perf_set_multithreaded(void); | 69 | void perf_set_multithreaded(void); |
70 | 70 | ||
71 | #ifndef O_CLOEXEC | ||
72 | #ifdef __sparc__ | ||
73 | #define O_CLOEXEC 0x400000 | ||
74 | #elif defined(__alpha__) || defined(__hppa__) | ||
75 | #define O_CLOEXEC 010000000 | ||
76 | #else | ||
77 | #define O_CLOEXEC 02000000 | ||
78 | #endif | ||
79 | #endif | ||
80 | |||
71 | #endif /* GIT_COMPAT_UTIL_H */ | 81 | #endif /* GIT_COMPAT_UTIL_H */ |