summaryrefslogtreecommitdiff
path: root/lib/profile/InstrProfilingPort.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/profile/InstrProfilingPort.h')
-rw-r--r--lib/profile/InstrProfilingPort.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/profile/InstrProfilingPort.h b/lib/profile/InstrProfilingPort.h
index cd1264b0e..578935195 100644
--- a/lib/profile/InstrProfilingPort.h
+++ b/lib/profile/InstrProfilingPort.h
@@ -7,9 +7,6 @@
|*
\*===----------------------------------------------------------------------===*/
-/* This header must be included after all others so it can provide fallback
- definitions for stuff missing in system headers. */
-
#ifndef PROFILE_INSTRPROFILING_PORT_H_
#define PROFILE_INSTRPROFILING_PORT_H_
@@ -47,6 +44,9 @@
#define COMPILER_RT_GETHOSTNAME(Name, Len) ((void)(Name), (void)(Len), (-1))
#else
#define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len)
+#ifndef _MSC_VER
+#define COMPILER_RT_HAS_UNAME 1
+#endif
#endif
#if COMPILER_RT_HAS_ATOMICS == 1
@@ -107,14 +107,6 @@
#define PROF_NOTE(Format, ...) \
fprintf(stderr, "LLVM Profile Note: " Format, __VA_ARGS__);
-#ifndef MAP_FILE
-#define MAP_FILE 0
-#endif
-
-#ifndef O_BINARY
-#define O_BINARY 0
-#endif
-
#if defined(__FreeBSD__)
#include <inttypes.h>