From 16ddc7ea568a29cb277cccfc4e0f96604580d1fb Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 14 Feb 2019 12:41:03 +0100 Subject: [PATCH] Fix implicit-function-declaration warning for writev MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nat64.c: In function ‘host_send_icmp4’: nat64.c:119:6: warning: implicit declaration of function ‘writev’ [-Wimplicit-function-declaration] if (writev(gcfg->tun_fd, iov, data_len ? 2 : 1) < 0) ^~~~~~ --- nat64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/nat64.c b/nat64.c index a88f81d..fb9046e 100644 --- a/nat64.c +++ b/nat64.c @@ -16,6 +16,7 @@ */ #include +#include extern struct config *gcfg;