summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2016-07-03 15:01:04 -0400
committerRich Felker <dalias@aerifal.cx>2016-07-03 15:02:23 -0400
commit126f58b2f44a0ba730831a6a4fef8daf85d9a601 (patch)
treee65b9a96784a30074271519c872bacce5d8b2578
parentcd208b0037c60da625fdd1f6a1459bc37115aacd (diff)
downloadmusl-126f58b2f44a0ba730831a6a4fef8daf85d9a601.tar.gz
define appropriate feature test macros to get CBAUD from termios.h
-rw-r--r--src/termios/cfgetospeed.c1
-rw-r--r--src/termios/cfsetospeed.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/termios/cfgetospeed.c b/src/termios/cfgetospeed.c
index 0ebc198c..55fa6f55 100644
--- a/src/termios/cfgetospeed.c
+++ b/src/termios/cfgetospeed.c
@@ -1,3 +1,4 @@
+#define _BSD_SOURCE
#include <termios.h>
#include <sys/ioctl.h>
diff --git a/src/termios/cfsetospeed.c b/src/termios/cfsetospeed.c
index 80c790f1..b571f62e 100644
--- a/src/termios/cfsetospeed.c
+++ b/src/termios/cfsetospeed.c
@@ -1,3 +1,4 @@
+#define _BSD_SOURCE
#include <termios.h>
#include <sys/ioctl.h>
#include <errno.h>