summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2017-06-07 11:39:52 +0000
committerkib <kib@FreeBSD.org>2017-06-07 11:39:52 +0000
commit9b53b277e1e26684c11df7041c12c22baf6e632b (patch)
tree8a00dc8748d36624373abf47a82296fcde4fdedf /include
parent45743686ba89fc6bef116847a7603c5c8a331825 (diff)
downloadFreeBSD-src-9b53b277e1e26684c11df7041c12c22baf6e632b.zip
FreeBSD-src-9b53b277e1e26684c11df7041c12c22baf6e632b.tar.gz
MFC r318780:
Use __BSD_VISIBLE test instead checking for absense of _POSIX_SOURCE. Approved by: re (marius)
Diffstat (limited to 'include')
-rw-r--r--include/termios.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/termios.h b/include/termios.h
index ed8e328..333ab1c 100644
--- a/include/termios.h
+++ b/include/termios.h
@@ -42,12 +42,12 @@ typedef __pid_t pid_t;
#define _PID_T_DECLARED
#endif
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
#define OXTABS TAB3
#define MDMBUF CCAR_OFLOW
#endif
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
#define CCEQ(val, c) ((c) == (val) && (val) != _POSIX_VDISABLE)
#endif
@@ -57,7 +57,7 @@ typedef __pid_t pid_t;
#define TCSANOW 0 /* make change immediate */
#define TCSADRAIN 1 /* drain output, then change */
#define TCSAFLUSH 2 /* drain output, flush input */
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
#define TCSASOFT 0x10 /* flag - don't alter h.w. state */
#endif
@@ -95,7 +95,7 @@ __END_DECLS
#endif /* !_TERMIOS_H_ */
-#ifndef _POSIX_SOURCE
+#if __BSD_VISIBLE
#include <sys/ttycom.h>
#include <sys/ttydefaults.h>
#endif
OpenPOWER on IntegriCloud