Nicolai Brown Public domain 20120512 This trivial patch allows CurveDNS 0.87 to be compiled on OpenBSD and probably other BSD systems. Apply it before running configure.nacl and configure.curvedns. --- Makefile.in.orig Tue Dec 28 02:32:54 2010 +++ Makefile.in Sat May 12 21:06:52 2012 @@ -8,9 +8,9 @@ NACLINC=nacl/build/include/$(ABI) CDNSCFLAGS=-Wall -fno-strict-aliasing -O3 -I$(NACLINC) # If you have libev at a non-standard place, specify that here: -#EV= -#EVCFLAGS=-I$(EV)/include -#EVLDFLAGS=-L$(EV)/lib +EV=/usr/local +EVCFLAGS=-I$(EV)/include +EVLDFLAGS=-L$(EV)/lib CC=@CC@ CFLAGS=@CFLAGS@ $(CDNSCFLAGS) $(EVCFLAGS) --- curvedns.c.orig Tue Dec 28 02:32:54 2010 +++ curvedns.c Sat May 12 18:58:17 2012 @@ -34,6 +34,7 @@ * $Revision: 23 $ */ +#include #include /* for AF_UNSPEC */ #include "curvedns.h" --- dns.c.orig Tue Dec 28 02:32:54 2010 +++ dns.c Sat May 12 19:00:25 2012 @@ -80,7 +80,7 @@ unsigned int dns_packet_getname(uint8_t *name, unsigne return pos; PROTO: - errno = EPROTO; + errno = EPROTONOSUPPORT; return 0; } --- dnscurve.c.orig Tue Dec 28 02:32:54 2010 +++ dnscurve.c Sat May 12 18:58:58 2012 @@ -107,7 +107,7 @@ static int dnscurve_parse_query_name(uint8_t *box, uns unsigned int encoded_boxlen = 0; unsigned int i = 0; - errno = EPROTO; + errno = EPROTONOSUPPORT; // Concatenate the base32 encoded components which make up the nonce and box for (;;) { --- misc.c.orig Tue Dec 28 02:32:54 2010 +++ misc.c Sat May 12 19:01:32 2012 @@ -288,7 +288,7 @@ TOOBIG: return 0; PROTO: - errno = EPROTO; + errno = EPROTONOSUPPORT; return 0; }