mirror of
https://github.com/troglobit/editline.git
synced 2025-06-25 01:11:12 +08:00
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:
parent
256e288331
commit
cb06c50d32
@ -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