]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Add IPPROTO_IPIP compat definition to fix MinGW build
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 16 Jul 2019 11:27:23 +0000 (12:27 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 16 Jul 2019 11:27:23 +0000 (12:27 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
openconnect-internal.h

index 21bd8853c6cdeb137e6d73f498d74f466c7514d0..30c65848a10020c549d3bf5e00e271c038ed5e94 100644 (file)
 #ifndef MIN
 #define MIN(x,y) ((x)<(y))?(x):(y)
 #endif
+
+/* At least MinGW headers seem not to provide IPPROTO_IPIP */
+#ifndef IPPROTO_IPIP
+#define IPPROTO_IPIP 0x04
+#endif
+
 /****************************************************************************/
 
 struct pkt {