Include <sys/ioctl.h> before calling ioctl() for Clang on OX X

At least when building with Clang on OS X, there is an error on
[line 1120 of editline.c][err] caused by using the `ioctl()` function
without first declaring it by including its header `<sys/ioctl.h>`.
Adding this line makes the build complete without error.

[err]: https://github.com/troglobit/editline/blob/master/src/editline.c#L1120

Signed-off-by: C0deH4cker <c0deh4cker@gmail.com>
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
C0deH4cker 2015-09-08 00:39:00 -04:00 committed by Joachim Nilsson
parent 256e288331
commit a1ca0d46ac

View File

@ -22,6 +22,7 @@
#include <errno.h> #include <errno.h>
#include <ctype.h> #include <ctype.h>
#include <signal.h> #include <signal.h>
#include <sys/ioctl.h>
#include "editline.h" #include "editline.h"