PosixApi.h 743 B

1234567891011121314151617181920212223
  1. //===-- PosixApi.h ----------------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLDB_HOST_POSIXAPI_H
  9. #define LLDB_HOST_POSIXAPI_H
  10. // This file defines platform specific functions, macros, and types necessary
  11. // to provide a minimum level of compatibility across all platforms to rely on
  12. // various posix api functionality.
  13. #if defined(_WIN32)
  14. #include "lldb/Host/windows/PosixApi.h"
  15. #else
  16. #include <unistd.h>
  17. #include <csignal>
  18. #endif
  19. #endif