1353358Sdim//===-- HostGetOpt.h --------------------------------------------*- C++ -*-===//
2262182Semaste//
3353358Sdim// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4353358Sdim// See https://llvm.org/LICENSE.txt for license information.
5353358Sdim// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6262182Semaste//
7262182Semaste//===----------------------------------------------------------------------===//
8262182Semaste#pragma once
9262182Semaste
10296417Sdim#if !defined(_MSC_VER) && !defined(__NetBSD__)
11262182Semaste
12276479Sdim#ifdef _WIN32
13276479Sdim#define _BSD_SOURCE // Required so that getopt.h defines optreset
14276479Sdim#endif
15276479Sdim
16314564Sdim#include <getopt.h>
17262182Semaste#include <unistd.h>
18262182Semaste
19262182Semaste#else
20262182Semaste
21296417Sdim#include <lldb/Host/common/GetOptInc.h>
22262182Semaste
23262500Semaste#endif
24