Fixing MSVC windows build. Please respect code order when ifdefing out MSVC specifics :)
llvm-svn: 205211
This commit is contained in:
parent
0c68faa455
commit
aba2539989
|
@ -38,6 +38,17 @@
|
||||||
// ioctls.h
|
// ioctls.h
|
||||||
#define TIOCGWINSZ 0x5413
|
#define TIOCGWINSZ 0x5413
|
||||||
|
|
||||||
|
|
||||||
|
// signal handler function pointer type
|
||||||
|
typedef void(*sighandler_t)(int);
|
||||||
|
|
||||||
|
// signal.h
|
||||||
|
#define SIGINT 2
|
||||||
|
// default handler
|
||||||
|
#define SIG_DFL ( (sighandler_t) -1 )
|
||||||
|
// ignored
|
||||||
|
#define SIG_IGN ( (sighandler_t) -2 )
|
||||||
|
|
||||||
// signal.h
|
// signal.h
|
||||||
#define SIGPIPE 13
|
#define SIGPIPE 13
|
||||||
#define SIGCONT 18
|
#define SIGCONT 18
|
||||||
|
@ -60,22 +71,7 @@
|
||||||
speed_t c_ospeed; // output speed
|
speed_t c_ospeed; // output speed
|
||||||
};
|
};
|
||||||
|
|
||||||
#define STDIN_FILENO 0
|
|
||||||
|
|
||||||
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 );
|
|
||||||
|
|
||||||
// signal handler function pointer type
|
|
||||||
typedef void (*sighandler_t)(int);
|
|
||||||
|
|
||||||
// signal.h
|
|
||||||
#define SIGINT 2
|
|
||||||
// default handler
|
|
||||||
#define SIG_DFL ( (sighandler_t) -1 )
|
|
||||||
// ignored
|
|
||||||
#define SIG_IGN ( (sighandler_t) -2 )
|
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
struct timeval
|
struct timeval
|
||||||
|
@ -89,6 +85,13 @@
|
||||||
#define PATH_MAX MAX_PATH
|
#define PATH_MAX MAX_PATH
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define STDIN_FILENO 0
|
||||||
|
|
||||||
|
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 );
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
Loading…
Reference in New Issue