mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
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:
parent
256e288331
commit
a1ca0d46ac
@ -22,6 +22,7 @@
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
#include <signal.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
#include "editline.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user