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

llvm-svn: 248255
This commit is contained in:
Vasileios Kalintiris 2015-09-22 09:46:35 +00:00
parent bbfd20d7dd
commit 44562da811
1 changed files with 1 additions and 1 deletions

View File

@ -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