diff options
Diffstat (limited to 'amiga/compat.h')
-rwxr-xr-x | amiga/compat.h | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/amiga/compat.h b/amiga/compat.h index ff418e161..c0064e11e 100755 --- a/amiga/compat.h +++ b/amiga/compat.h @@ -19,9 +19,29 @@ #ifndef AMIGA_COMPAT_H #define AMIGA_COMPAT_H //#include <sys/unistd.h> -#include <termios.h> #include <sys/utsname.h> +/* for termios.h compatiblity */ +typedef unsigned int tcflag_t; +typedef unsigned char cc_t; +typedef unsigned int speed_t; + +#define NCCS 16 + +struct termios { + tcflag_t c_iflag; + tcflag_t c_oflag; + tcflag_t c_cflag; + tcflag_t c_lflag; + cc_t c_cc[NCCS]; + /* Private */ + speed_t c_ispeed; + speed_t c_ospeed; + int type; + unsigned int flags; +}; +/**/ + extern gid_t getegid(void); extern uid_t geteuid(void); extern uid_t getuid(void); |