summaryrefslogtreecommitdiff
path: root/lib/libedit
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>2003-09-13 04:18:00 +0000
committermycroft <mycroft@NetBSD.org>2003-09-13 04:18:00 +0000
commitec5dc2be24d83ab5bc9674cbaee3510e132aa2f7 (patch)
tree67789eadf45f287c0e688b6fde4a514f0d91244b /lib/libedit
parent552531a249367990e1bc368e37395b0628aede41 (diff)
Fix something that's been annoying me for a while...
Pull in <fcntl.h>, so that the fcntl #defines are present, and we build in the automatic reset of non-blocking mode, rather than beeping like mad.
Diffstat (limited to 'lib/libedit')
-rw-r--r--lib/libedit/read.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libedit/read.c b/lib/libedit/read.c
index 9d2dabb5186..2803667677d 100644
--- a/lib/libedit/read.c
+++ b/lib/libedit/read.c
@@ -1,4 +1,4 @@
-/* $NetBSD: read.c,v 1.26 2003/08/07 16:44:32 agc Exp $ */
+/* $NetBSD: read.c,v 1.27 2003/09/13 04:18:00 mycroft Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: read.c,v 1.26 2003/08/07 16:44:32 agc Exp $");
+__RCSID("$NetBSD: read.c,v 1.27 2003/09/13 04:18:00 mycroft Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -46,6 +46,7 @@ __RCSID("$NetBSD: read.c,v 1.26 2003/08/07 16:44:32 agc Exp $");
* Terminal read functions
*/
#include <errno.h>
+#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include "el.h"