diff options
author | Harald Welte <laforge@osmocom.org> | 2019-11-06 06:55:47 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-11-06 06:56:36 +0100 |
commit | 2359de6b088edea78d7bf62ccf3afdb81ec5e466 (patch) | |
tree | 0373c0cded3ff4096f8df902f1b88dc1cb8c6d52 | |
parent | 41a5300243f55ed5bf23b06844b3748ac2782d68 (diff) |
storage.c: Fix compiler error due to missing writev() declaration
storage.c:90:7: error: implicit declaration of function ‘writev’; did you mean ‘write’? [-Werror=implicit-function-declaration]
90 | rc = writev(g_out_fd, iov, ARRAY_SIZE(iov));
| ^~~~~~
| write
-rw-r--r-- | src/storage.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/storage.c b/src/storage.c index 0a926e4..bcb50a2 100644 --- a/src/storage.c +++ b/src/storage.c @@ -4,6 +4,7 @@ #include <errno.h> #include <unistd.h> #include <sys/stat.h> +#include <sys/uio.h> #include <osmocom/core/msgb.h> #include <osmocom/core/talloc.h> |