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
 


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
 
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to