summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2021-12-10 13:23:56 -0600
committerAriadne Conill <ariadne@dereferenced.org>2021-12-14 13:06:26 -0600
commit6941f8bd61a31b9a03d1375243b21ddf28f5aa13 (patch)
tree6e7b120e84bab9acbcd711b0aadd0ec64a515dd9 /src
parent36fcbeed1a8de075846b461612a7aa559fca32d1 (diff)
downloadapk-tools-6941f8bd61a31b9a03d1375243b21ddf28f5aa13.tar.gz
apk-tools-6941f8bd61a31b9a03d1375243b21ddf28f5aa13.tar.bz2
apk-tools-6941f8bd61a31b9a03d1375243b21ddf28f5aa13.tar.xz
apk-tools-6941f8bd61a31b9a03d1375243b21ddf28f5aa13.zip
adb: use sys/uio.h for iovec operations
readv/writev and struct iovec are declared in sys/uio.h per POSIX. using it without sys/uio.h is a GNU extension. ref #10794
Diffstat (limited to 'src')
-rw-r--r--src/adb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/adb.c b/src/adb.c
index 2df34b4..4f313cd 100644
--- a/src/adb.c
+++ b/src/adb.c
@@ -5,6 +5,7 @@
#include <errno.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#include <sys/uio.h>
#include <openssl/pem.h>
#include <openssl/err.h>