diff options
-rw-r--r-- | lib/profile/CMakeLists.txt | 1 | ||||
-rw-r--r-- | lib/profile/InstrProfilingUtil.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/profile/CMakeLists.txt b/lib/profile/CMakeLists.txt index 5bcdca129..996f3beaf 100644 --- a/lib/profile/CMakeLists.txt +++ b/lib/profile/CMakeLists.txt @@ -82,6 +82,7 @@ if(APPLE) STATIC OS ${PROFILE_SUPPORTED_OS} ARCHS ${PROFILE_SUPPORTED_ARCH} + CFLAGS ${EXTRA_FLAGS} SOURCES ${PROFILE_SOURCES} PARENT_TARGET profile) else() diff --git a/lib/profile/InstrProfilingUtil.c b/lib/profile/InstrProfilingUtil.c index f97004d41..e87ab7640 100644 --- a/lib/profile/InstrProfilingUtil.c +++ b/lib/profile/InstrProfilingUtil.c @@ -16,9 +16,7 @@ #else #include <sys/stat.h> #include <sys/types.h> -#if defined(__linux__) #include <unistd.h> -#endif #include <fcntl.h> #include <errno.h> #endif |