Change in osmo-e1-recorder[master]: storage.c: Fix compiler error due to missing writev() declaration

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Nov 24 17:44:07 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16180 )

Change subject: storage.c: Fix compiler error due to missing writev() declaration
......................................................................

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

Change-Id: If98737199f5a6e8fb37a4fd6403ee973dcf70612
---
M src/storage.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



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>

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-e1-recorder/+/16180
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1-recorder
Gerrit-Branch: master
Gerrit-Change-Id: If98737199f5a6e8fb37a4fd6403ee973dcf70612
Gerrit-Change-Number: 16180
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191124/f34fb0d6/attachment.htm>


More information about the gerrit-log mailing list