2017-04-25 14:41:48 +02:00
|
|
|
/*
|
|
|
|
|
* magsgtty.h --
|
|
|
|
|
*
|
|
|
|
|
* Magic's own sgtty.h file. For porting
|
|
|
|
|
*
|
2020-05-23 23:13:14 +02:00
|
|
|
* *********************************************************************
|
|
|
|
|
* * Copyright (C) 1985, 1990 Regents of the University of California. *
|
|
|
|
|
* * Permission to use, copy, modify, and distribute this *
|
|
|
|
|
* * software and its documentation for any purpose and without *
|
|
|
|
|
* * fee is hereby granted, provided that the above copyright *
|
|
|
|
|
* * notice appear in all copies. The University of California *
|
|
|
|
|
* * makes no representations about the suitability of this *
|
|
|
|
|
* * software for any purpose. It is provided "as is" without *
|
|
|
|
|
* * express or implied warranty. Export of this software outside *
|
|
|
|
|
* * of the United States of America may require an export license. *
|
2017-04-25 14:41:48 +02:00
|
|
|
* *********************************************************************
|
|
|
|
|
*
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef _MAGSGTTY_H
|
|
|
|
|
#define _MAGSGTTY_H
|
|
|
|
|
|
|
|
|
|
#if !defined(SYSV) && !defined(CYGWIN)
|
2019-07-22 01:32:45 +02:00
|
|
|
|
2017-04-25 14:41:48 +02:00
|
|
|
# ifdef ALPHA
|
|
|
|
|
# undef MAX
|
|
|
|
|
# undef MIN
|
|
|
|
|
# endif
|
2019-07-22 01:32:45 +02:00
|
|
|
|
|
|
|
|
# ifndef COMPAT_43TTY
|
|
|
|
|
# define COMPAT_43TTY
|
|
|
|
|
# endif
|
|
|
|
|
|
|
|
|
|
#include <sys/ioctl.h>
|
2022-09-03 05:52:34 +02:00
|
|
|
|
2023-07-11 17:31:37 +02:00
|
|
|
#if defined(__OpenBSD__) || defined(EMSCRIPTEN)
|
2022-09-03 05:52:34 +02:00
|
|
|
#include <termios.h>
|
|
|
|
|
#else
|
2019-07-22 01:32:45 +02:00
|
|
|
#include <sys/ioctl_compat.h>
|
2022-09-03 05:52:34 +02:00
|
|
|
#endif
|
2019-07-22 01:32:45 +02:00
|
|
|
|
2017-04-25 14:41:48 +02:00
|
|
|
#else
|
|
|
|
|
#include <termio.h>
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif /* _MAGSGTTY_H */
|