commit 13f08f83312dcfa0e867d0acd15daec983dc4689 from: Martijn van Duren date: Thu Nov 14 17:46:37 2019 UTC Make it compile again on OpenBSD commit - 957c2372faf8102543ec854c91a891237623539e commit + 13f08f83312dcfa0e867d0acd15daec983dc4689 blob - fcf3f33d101c1332a98c9e0a2ae2f78232d74b60 blob + 8c02fd9a2c317c95309bc937aa7e6bbe26e21d69 --- Makefile +++ Makefile @@ -1,6 +1,6 @@ LIB= opensmtpd -LOCALBASE?= /usr +LOCALBASE?= /usr/local/ SRCS= opensmtpd.c iobuf.c ioev.c HDRS= opensmtpd.h @@ -10,7 +10,7 @@ MANDIR= ${LOCALBASE}/man/man LDADD= -levent DPADD= ${EVENT} -CFLAGS+= -Wall -I${.CURDIR} +CFLAGS+= -Wall -I${.CURDIR} -I${.CURDIR}/openbsd-compat CFLAGS+= -Wstrict-prototypes -Wmissing-prototypes CFLAGS+= -Wmissing-declarations CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual blob - 2303367266342c71a287b3c51bcbb9d6a7fdc5e0 blob + c6fe7be0115ad232a3775fffb4a87a9e161beaf4 --- iobuf.c +++ iobuf.c @@ -17,6 +17,7 @@ #define _XOPEN_SOURCE 1 #define _GNU_SOURCE 1 +#define _BSD_SOURCE 1 #include #include blob - 61615cccd0da524600e895344ca04ec6c5a8d0ec blob + 751296772ad0026f559d1f5fa2f455510a2bee1b --- ioev.c +++ ioev.c @@ -15,6 +15,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #define _GNU_SOURCE 1 +#define _BSD_SOURCE 1 #include #include