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 (`<sys/ioctl.h>`). Adding this line makes the build complete without error.
This commit is contained in:
C0deH4cker 2015-09-08 00:39:00 -04:00
parent 256e288331
commit cb06c50d32

View File

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