summaryrefslogtreecommitdiffstats
path: root/Source/CursesDialog/cmCursesStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-01-24 15:33:46 (GMT)
committerBrad King <brad.king@kitware.com>2003-01-24 15:33:46 (GMT)
commit100a96297e7a8a905ff8f819be72d0b68a11e7a6 (patch)
tree7444c90fac8eb8c83df058e44214b250c72b79c0 /Source/CursesDialog/cmCursesStandardIncludes.h
parent91112440185898f54d021f97d68dff6338e49a32 (diff)
downloadCMake-100a96297e7a8a905ff8f819be72d0b68a11e7a6.zip
CMake-100a96297e7a8a905ff8f819be72d0b68a11e7a6.tar.gz
CMake-100a96297e7a8a905ff8f819be72d0b68a11e7a6.tar.bz2
ERR: Fixed unreferenced termios declaration warning.
Diffstat (limited to 'Source/CursesDialog/cmCursesStandardIncludes.h')
-rw-r--r--Source/CursesDialog/cmCursesStandardIncludes.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h
index 5a54d4e..a09242e 100644
--- a/Source/CursesDialog/cmCursesStandardIncludes.h
+++ b/Source/CursesDialog/cmCursesStandardIncludes.h
@@ -21,15 +21,26 @@
#endif
#if defined(__hpux)
- #define _BOOL_DEFINED
- #include <sys/time.h>
- #define _XOPEN_SOURCE_EXTENDED
- #include <curses.h>
- #include <form.h>
- #undef _XOPEN_SOURCE_EXTENDED
+# define _BOOL_DEFINED
+# include <sys/time.h>
+# define _XOPEN_SOURCE_EXTENDED
+# include <curses.h>
+# include <form.h>
+# undef _XOPEN_SOURCE_EXTENDED
#else
- #include <curses.h>
- #include <form.h>
+# include <curses.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
#ifndef getmaxyx