summaryrefslogtreecommitdiff
path: root/serial.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 21:27:50 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 21:27:50 -0700
commit31ece69babcaedbbd2f635c1dc2391025d5619b6 (patch)
tree59fd2d94a700f763ec334a44ef7713bbcc71eecf /serial.c
parent87b7df35465772ee43e391e3c431f0bfd4bed634 (diff)
downloadgpsd-31ece69babcaedbbd2f635c1dc2391025d5619b6.tar.gz
cfmakeraw() needs _DEFAULT_SOURCE
Diffstat (limited to 'serial.c')
-rw-r--r--serial.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/serial.c b/serial.c
index 9378f6db..d941c73a 100644
--- a/serial.c
+++ b/serial.c
@@ -3,6 +3,9 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+/* cfmakeraw() needs _DEFAULT_SOURCE */
+#define _DEFAULT_SOURCE
+
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>