summaryrefslogtreecommitdiff
path: root/include/lldb/Host/posix/Fcntl.h
blob: 31cc293dd37a6deb25de326f6fc8fd65f8b9aeda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===-- Fcntl.h -------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

// This file defines fcntl functions & structures

#ifndef liblldb_Host_posix_Fcntl_h_
#define liblldb_Host_posix_Fcntl_h_

#ifdef __ANDROID__
#include <android/api-level.h>
#endif

#include <fcntl.h>

#if defined(__ANDROID_API__) && __ANDROID_API__ < 21
#define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
#endif

#endif // liblldb_Host_posix_Fcntl_h_