ERR: Fixed unreferenced termios declaration warning.
This commit is contained in:
parent
9111244018
commit
100a96297e
@ -21,15 +21,26 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__hpux)
|
#if defined(__hpux)
|
||||||
#define _BOOL_DEFINED
|
# define _BOOL_DEFINED
|
||||||
#include <sys/time.h>
|
# include <sys/time.h>
|
||||||
#define _XOPEN_SOURCE_EXTENDED
|
# define _XOPEN_SOURCE_EXTENDED
|
||||||
#include <curses.h>
|
# include <curses.h>
|
||||||
#include <form.h>
|
# include <form.h>
|
||||||
#undef _XOPEN_SOURCE_EXTENDED
|
# undef _XOPEN_SOURCE_EXTENDED
|
||||||
#else
|
#else
|
||||||
#include <curses.h>
|
# include <curses.h>
|
||||||
#include <form.h>
|
# include <form.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
// This is a hack to prevent warnings about these functions being
|
||||||
|
// declared but not referenced.
|
||||||
|
#if defined(__sgi) && !defined(__GNUC__)
|
||||||
|
/*REFERENCED*/ speed_t cfgetospeed (const struct termios *__t);
|
||||||
|
/*REFERENCED*/ int cfsetospeed (struct termios *__t, speed_t __s);
|
||||||
|
/*REFERENCED*/ speed_t cfgetispeed (const struct termios *__t);
|
||||||
|
/*REFERENCED*/ int cfsetispeed (struct termios *__t, speed_t __s);
|
||||||
|
/*REFERENCED*/ int tcgetattr (int __fd, struct termios *__t);
|
||||||
|
/*REFERENCED*/ int tcsetattr (int __fd, int __act, const struct termios *__t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef getmaxyx
|
#ifndef getmaxyx
|
||||||
|
Loading…
x
Reference in New Issue
Block a user