summaryrefslogtreecommitdiffstats
path: root/src/common.c
diff options
context:
space:
mode:
authorGravatar s0uthwest2019-02-02 03:29:12 -0800
committerGravatar GitHub2019-02-02 03:29:12 -0800
commit620a6b7a84946f12f471a81918da81fc3d104de6 (patch)
treeaba430368e027c97bd46e81ae54615e1e9a9bd26 /src/common.c
parent8aa4246ddef30c0e114362b6ef2a8e6ee0ed3817 (diff)
downloadidevicerestore-620a6b7a84946f12f471a81918da81fc3d104de6.tar.gz
idevicerestore-620a6b7a84946f12f471a81918da81fc3d104de6.tar.bz2
Common: included <unistd.h> for fix compiling on macOS
error: use of undeclared identifier 'STDIN_FILENO' tcgetattr(STDIN_FILENO, &oldt);
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.c b/src/common.c
index c7064d9..559f342 100644
--- a/src/common.c
+++ b/src/common.c
@@ -35,6 +35,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
+#include <unistd.h>
#ifdef WIN32
#include <windows.h>