diff options
Diffstat (limited to 'contrib/llvm-project/lldb/include/lldb/Host/Time.h')
-rw-r--r-- | contrib/llvm-project/lldb/include/lldb/Host/Time.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/include/lldb/Host/Time.h b/contrib/llvm-project/lldb/include/lldb/Host/Time.h new file mode 100644 index 000000000000..b27eb082167e --- /dev/null +++ b/contrib/llvm-project/lldb/include/lldb/Host/Time.h @@ -0,0 +1,25 @@ +//===-- Time.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 +// +//===----------------------------------------------------------------------===// + +// Include system time headers, adding missing functions as necessary + +#ifndef liblldb_Host_Time_h_ +#define liblldb_Host_Time_h_ + +#ifdef __ANDROID__ +#include <android/api-level.h> +#endif + +#if defined(__ANDROID_API__) && __ANDROID_API__ < 21 +#include <time64.h> +extern time_t timegm(struct tm *t); +#else +#include <time.h> +#endif + +#endif // liblldb_Host_Time_h_ |