summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 4808083..d3a1121 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -24,6 +24,7 @@ THE SOFTWARE.
#ifndef __FreeBSD__
#define _POSIX_C_SOURCE 1 /* fileno() */
#define _BSD_SOURCE /* setlinebuf() */
+#define _DARWIN_C_SOURCE /* setlinebuf() on OS X */
#endif
#include <termios.h>