diff options
Diffstat (limited to 'src/sympathy.h.head.in')
-rw-r--r-- | src/sympathy.h.head.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/sympathy.h.head.in b/src/sympathy.h.head.in index 22fcc1e..8d9ba2c 100644 --- a/src/sympathy.h.head.in +++ b/src/sympathy.h.head.in @@ -47,6 +47,8 @@ extern "C" { #include <stdio.h> #include <stdlib.h> +#include <sys/types.h> + /* the integer constants here are set by configure */ /* get uint32_t and friends defined */ @@ -92,6 +94,52 @@ extern "C" { #include <sys/int_types.h> #endif +#if @G2_HAVE_TERMIO_H@ #include <termio.h> +#endif #include <termios.h> + +#ifndef TIOCM_LE +#define TIOCM_LE 0x001 /* line enable */ +#endif +#ifndef TIOCM_DTR +#define TIOCM_DTR 0x002 /* data terminal ready */ +#endif +#ifndef TIOCM_RTS +#define TIOCM_RTS 0x004 /* request to send */ +#endif +#ifndef TIOCM_ST +#define TIOCM_ST 0x010 /* secondary transmit */ +#endif +#ifndef TIOCM_SR +#define TIOCM_SR 0x020 /* secondary receive */ +#endif +#ifndef TIOCM_CTS +#define TIOCM_CTS 0x040 /* clear to send */ +#endif +#ifndef TIOCM_CAR +#define TIOCM_CAR 0x100 /* carrier detect */ +#endif +#ifndef TIOCM_CD +#define TIOCM_CD TIOCM_CAR +#endif +#ifndef TIOCM_RNG +#define TIOCM_RNG 0x200 /* ring */ +#endif +#ifndef TIOCM_RI +#define TIOCM_RI TIOCM_RNG +#endif +#ifndef TIOCM_DSR +#define TIOCM_DSR 0x400 /* data set ready */ +#endif +#ifndef TIOCM_OUT1 +#define TIOCM_OUT1 0x2000 +#endif +#ifndef TIOCM_OUT2 +#define TIOCM_OUT2 0x4000 +#endif +#ifndef TIOCM_LOOP +#define TIOCM_LOOP 0x8000 +#endif + #include <string.h> |