Print this page
remove support for non-ANSI compilation

@@ -21,10 +21,12 @@
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
 
 
 /*
+ * Copyright 2014 Garrett D'Amore <garrett@damore.org>
+ *
  * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  */
 
 #ifndef _SYS_TERMIOS_H
 #define _SYS_TERMIOS_H

@@ -96,12 +98,10 @@
  * These functions get mapped into ioctls.
  */
 
 #ifndef _KERNEL
 
-#if defined(__STDC__)
-
 extern speed_t cfgetospeed(const struct termios *);
 extern int cfsetospeed(struct termios *, speed_t);
 extern speed_t cfgetispeed(const struct termios *);
 extern int cfsetispeed(struct termios *, speed_t);
 extern int tcgetattr(int, struct termios *);

@@ -109,32 +109,13 @@
 extern int tcsendbreak(int, int);
 extern int tcdrain(int);
 extern int tcflush(int, int);
 extern int tcflow(int, int);
 
-#else
-
-extern speed_t cfgetospeed();
-extern int cfsetospeed();
-extern speed_t cfgetispeed();
-extern int cfsetispeed();
-extern int tcgetattr();
-extern int tcsetattr();
-extern int tcsendbreak();
-extern int tcdrain();
-extern int tcflush();
-extern int tcflow();
-
-#endif /* __STDC__ */
-
 #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
 
-#if defined(__STDC__)
 extern pid_t tcgetsid(int);
-#else
-extern pid_t tcgetsid();
-#endif /* __STDC__ */
 
 #endif /* !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) ... */
 
 #endif