Paul Wouters 68745e
diff -Naur socat-1.7.2.1-orig/xio-ip.c socat-1.7.2.1/xio-ip.c
Paul Wouters 68745e
--- socat-1.7.2.1-orig/xio-ip.c	2011-12-06 02:45:03.000000000 -0500
Paul Wouters 68745e
+++ socat-1.7.2.1/xio-ip.c	2012-05-23 16:31:23.000000000 -0400
Paul Wouters 68745e
@@ -42,6 +42,7 @@
Paul Wouters 68745e
 const struct optdesc opt_ip_hdrincl = { "ip-hdrincl", "hdrincl",   OPT_IP_HDRINCL, GROUP_SOCK_IP, PH_PASTSOCKET, TYPE_INT, OFUNC_SOCKOPT, SOL_IP, IP_HDRINCL };
Paul Wouters 68745e
 #endif
Paul Wouters 68745e
 #ifdef IP_RECVERR
Paul Wouters 68745e
+# include <linux/errqueue.h>
Paul Wouters 68745e
 const struct optdesc opt_ip_recverr = { "ip-recverr", "recverr",   OPT_IP_RECVERR, GROUP_SOCK_IP, PH_PASTSOCKET, TYPE_INT, OFUNC_SOCKOPT, SOL_IP, IP_RECVERR };
Paul Wouters 68745e
 #endif
Paul Wouters 68745e
 #ifdef IP_MTU_DISCOVER