Fix implicit-function-declaration warning for writev

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)
      ^~~~~~
This commit is contained in:
Nico Schottelius 2019-02-14 12:41:03 +01:00
parent 1c43cef4e5
commit 16ddc7ea56
1 changed files with 1 additions and 0 deletions

View File

@ -16,6 +16,7 @@
*/
#include <tayga.h>
#include <sys/uio.h>
extern struct config *gcfg;