Author: vkalintiris Date: Tue Sep 22 04:46:35 2015 New Revision: 248255 URL: http://llvm.org/viewvc/llvm-project?rev=248255&view=rev Log: Use fcntl.h to retrieve the O_CREAT and O_RDWR constants.
Summary: Normally, these macros are defined in fnctl.h. However, GLIBC exposes their definition through <sys/file.h> too. This change allows us to compile LLDB with non-GLIBC C libraries. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13022 Modified: lldb/trunk/source/Core/ConnectionSharedMemory.cpp Modified: lldb/trunk/source/Core/ConnectionSharedMemory.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/ConnectionSharedMemory.cpp?rev=248255&r1=248254&r2=248255&view=diff ============================================================================== --- lldb/trunk/source/Core/ConnectionSharedMemory.cpp (original) +++ lldb/trunk/source/Core/ConnectionSharedMemory.cpp Tue Sep 22 04:46:35 2015 @@ -16,10 +16,10 @@ #ifdef _WIN32 #include "lldb/Host/windows/windows.h" #else -#include <sys/file.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> +#include <fcntl.h> #endif // C++ Includes _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits