diff options
author | 2015-12-20 22:54:40 +0100 | |
---|---|---|
committer | 2015-12-20 22:54:40 +0100 | |
commit | 9ee1ce356bef3bf4dc73e9efaa7a3fdca1d09f81 (patch) | |
tree | f83f64da320d855846ede0d016200f35c88d547d /smtpd | |
parent | KNF + man page fixes (diff) | |
download | OpenSMTPD-9ee1ce356bef3bf4dc73e9efaa7a3fdca1d09f81.tar.xz OpenSMTPD-9ee1ce356bef3bf4dc73e9efaa7a3fdca1d09f81.zip |
add support for older 5.7 and 5.8 releases
Diffstat (limited to 'smtpd')
-rw-r--r-- | smtpd/smtpctl/Makefile | 5 | ||||
-rw-r--r-- | smtpd/smtpd/Makefile | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/smtpd/smtpctl/Makefile b/smtpd/smtpctl/Makefile index 9497482f..342845ee 100644 --- a/smtpd/smtpctl/Makefile +++ b/smtpd/smtpctl/Makefile @@ -2,6 +2,8 @@ .PATH: ${.CURDIR}/.. +OPENBSD_VERSION!= uname -r + PROG= smtpctl BINOWN= root BINGRP= _smtpq @@ -19,6 +21,9 @@ CFLAGS+= -Wmissing-declarations CFLAGS+= -Wshadow -Wpointer-arith -Wcast-qual CFLAGS+= -Wsign-compare CFLAGS+= -DNO_IO +.if ${OPENBSD_VERSION} == "5.7" || ${OPENBSD_VERSION} == "5.8" +CFLAGS+= -D"pledge(promises, paths)=0" +.endif SRCS= enqueue.c SRCS+= parser.c diff --git a/smtpd/smtpd/Makefile b/smtpd/smtpd/Makefile index e7cce39a..ddf48c58 100644 --- a/smtpd/smtpd/Makefile +++ b/smtpd/smtpd/Makefile @@ -2,6 +2,8 @@ .PATH: ${.CURDIR}/.. +OPENBSD_VERSION!= uname -r + PROG= smtpd SRCS= aliases.c @@ -93,6 +95,9 @@ CFLAGS+= -Wsign-compare #CFLAGS+= -Werror # during development phase (breaks some archs) CFLAGS+= -DIO_SSL CFLAGS+= -DQUEUE_PROFILING +.if ${OPENBSD_VERSION} == "5.7" || ${OPENBSD_VERSION} == "5.8" +CFLAGS+= -D"pledge(promises, paths)=0" +.endif YFLAGS= .include <bsd.prog.mk> |