#ifndef lldb_Platform_h_
#define lldb_Platform_h_
#if defined( _MSC_VER )
#define _INC_SIGNAL
#include <io.h>
#include <eh.h>
#include <inttypes.h>
#include "ELWrapper.h"
#include "lldb/Host/windows/Windows.h"
#include "GetOptWrapper.h"
struct timeval
{
long tv_sec;
long tv_usec;
};
struct winsize
{
long ws_col;
};
typedef unsigned char cc_t;
typedef unsigned int speed_t;
typedef unsigned int tcflag_t;
#define O_NOCTTY 0400
#define TIOCGWINSZ 0x5413
#define SIGPIPE 13
#define SIGCONT 18
#define SIGTSTP 20
#define SIGWINCH 28
#define TCSANOW 0
#define NCCS 32
struct termios
{
tcflag_t c_iflag; tcflag_t c_oflag; tcflag_t c_cflag; tcflag_t c_lflag; cc_t c_line; cc_t c_cc[NCCS]; speed_t c_ispeed; speed_t c_ospeed; };
typedef long pid_t;
#define STDIN_FILENO 0
#define PATH_MAX MAX_PATH
#define snprintf _snprintf
extern int ioctl( int d, int request, ... );
extern int kill ( pid_t pid, int sig );
extern int tcsetattr( int fd, int optional_actions, const struct termios *termios_p );
extern int tcgetattr( int fildes, struct termios *termios_p );
typedef void (*sighandler_t)(int);
#define SIGINT 2
#define SIG_DFL ( (sighandler_t) -1 )
#define SIG_IGN ( (sighandler_t) -2 )
extern sighandler_t signal( int sig, sighandler_t );
#else
#include <inttypes.h>
#include <getopt.h>
#include <libgen.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include <histedit.h>
#include <pthread.h>
#include <sys/time.h>
#if defined(__FreeBSD__)
#include <readline/readline.h>
#else
#include <editline/readline.h>
#endif
#endif
#endif // lldb_Platform_h_