summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2008-04-18 02:02:33 +0000
committerdavidxu <davidxu@FreeBSD.org>2008-04-18 02:02:33 +0000
commitdb89592cc37313c3062d46bf9c6738e61f49a700 (patch)
treeb0e2485f0afe362802d1be8afb2f9917cf0bb901
parentc2731a3a9537c765cd35b0910a3184544d14fb28 (diff)
downloadFreeBSD-src-db89592cc37313c3062d46bf9c6738e61f49a700.zip
FreeBSD-src-db89592cc37313c3062d46bf9c6738e61f49a700.tar.gz
Add missing function prototype for tcgetsid().
-rw-r--r--sys/sys/termios.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/sys/termios.h b/sys/sys/termios.h
index f9e173c..056b3b6 100644
--- a/sys/sys/termios.h
+++ b/sys/sys/termios.h
@@ -33,6 +33,12 @@
#ifndef _SYS_TERMIOS_H_
#define _SYS_TERMIOS_H_
+#include <sys/_types.h>
+#ifndef _PID_T_DECLARED
+typedef __pid_t pid_t;
+#define _PID_T_DECLARED
+#endif
+
/*
* Special Control Characters
*
@@ -256,6 +262,10 @@ int tcflow(int, int);
int tcflush(int, int);
int tcsendbreak(int, int);
+#if __POSIX_VISIBLE >= 200112 || __BSD_VISIBLE
+pid_t tcgetsid(int);
+#endif
+
#ifndef _POSIX_SOURCE
void cfmakeraw(struct termios *);
int cfsetspeed(struct termios *, speed_t);
OpenPOWER on IntegriCloud