HostGetOpt.h 699 B

123456789101112131415161718192021222324252627
  1. //===-- HostGetOpt.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_HOSTGETOPT_H
  9. #define LLDB_HOST_HOSTGETOPT_H
  10. #if !defined(_MSC_VER) && !defined(__NetBSD__)
  11. #ifdef _WIN32
  12. #define _BSD_SOURCE // Required so that getopt.h defines optreset
  13. #endif
  14. #include <getopt.h>
  15. #include <unistd.h>
  16. #else
  17. #include <lldb/Host/common/GetOptInc.h>
  18. #endif
  19. #endif // LLDB_HOST_HOSTGETOPT_H