VCL: application proxy configuration
[vpp.git] / src / vcl / vcom_socket.c
index 5918f6b..de558e7 100644 (file)
@@ -30,6 +30,9 @@
 
 #include <vcl/vppcom.h>
 
+#ifndef IOV_MAX
+#define IOV_MAX __IOV_MAX
+#endif
 
 /*
  * VCOM_SOCKET Private definitions and functions.
@@ -1513,11 +1516,10 @@ vcom_session_sendto (int __sid, void *__buf, size_t __n,
                     socklen_t __addr_len)
 {
   vppcom_endpt_t *ep = 0;
+  vppcom_endpt_t _ep;
 
   if (__addr)
     {
-      vppcom_endpt_t _ep;
-
       ep = &_ep;
       ep->vrf = VPPCOM_VRF_DEFAULT;
       switch (__addr->sa_family)