From cb06c50d32c151f527fb21e82dfac5dbdc88fedb Mon Sep 17 00:00:00 2001 From: C0deH4cker Date: Tue, 8 Sep 2015 00:39:00 -0400 Subject: [PATCH] Include sys/ioctl.h before calling ioctl() At least when building with Clang on OS X, there is an error on [line 1120 of editline.c](https://github.com/troglobit/editline/blob/master/src/editline.c#L1120) caused by using the `ioctl()` function without first declaring it by including its header (``). Adding this line makes the build complete without error. --- src/editline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editline.c b/src/editline.c index 320cfaf..890b5aa 100644 --- a/src/editline.c +++ b/src/editline.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "editline.h"