[Lldb-commits] [PATCH] D13022: Use fcntl.h to retrieve the O_CREAT and O_RDRW constants.

Vasileios Kalintiris via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 21 06:57:01 PDT 2015


vkalintiris created this revision.
vkalintiris added a reviewer: clayborg.
vkalintiris added a subscriber: lldb-commits.

Normally, these macros are defined in <sys/fnctl.h>. However, GLIBC exposes
their definition through <sys/file.h> too. This change allows us to compile
LLDB with non-GLIBC C libraries.

http://reviews.llvm.org/D13022

Files:
  source/Core/ConnectionSharedMemory.cpp

Index: source/Core/ConnectionSharedMemory.cpp
===================================================================
--- source/Core/ConnectionSharedMemory.cpp
+++ source/Core/ConnectionSharedMemory.cpp
@@ -16,9 +16,9 @@
 #ifdef _WIN32
 #include "lldb/Host/windows/windows.h"
 #else
-#include <sys/file.h>
 #include <sys/mman.h>
 #include <sys/stat.h>
+#include <sys/fcntl.h>
 #include <sys/types.h>
 #endif
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13022.35255.patch
Type: text/x-patch
Size: 407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150921/e7454550/attachment.bin>


More information about the lldb-commits mailing list