opnsense-ports/security/nacl/files/patch-socket_udp.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

13 lines
352 B
C

--- curvecp/socket_udp.c.orig 2014-01-29 15:34:07.000000000 -0800
+++ curvecp/socket_udp.c 2014-01-29 15:34:12.000000000 -0800
@@ -6,6 +6,10 @@
#include "socket.h"
#include "blocking.h"
+#ifndef SOL_IP
+#define SOL_IP IPPROTO_IP /* FreeBSD requires protocol number */
+#endif
+
static void enable_bsd_fragmentation(int fd)
{
#ifdef IP_DONTFRAG