[Lldb-commits] [lldb] r248255 - Use fcntl.h to retrieve the O_CREAT and O_RDWR constants.

Vasileios Kalintiris via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 22 02:46:40 PDT 2015

Author: vkalintiris
Date: Tue Sep 22 04:46:35 2015
New Revision: 248255

URL: http://llvm.org/viewvc/llvm-project?rev=248255&view=rev
Use fcntl.h to retrieve the O_CREAT and O_RDWR constants.

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
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"
-#include <sys/file.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
 #include <sys/types.h>
+#include <fcntl.h>
 // C++ Includes

More information about the lldb-commits mailing list