diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2004-06-01 01:29:42 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2004-06-01 01:29:42 +0000 |
commit | 76a17fc31644dd8ea6914a3b0c7daba6b85fe159 (patch) | |
tree | c05169b8bdcf1b9d61cd5583f11216147af44885 /lib | |
parent | d503c79cad595bd26f835062ce4bb6ef858857eb (diff) | |
download | FreeBSD-src-76a17fc31644dd8ea6914a3b0c7daba6b85fe159.zip FreeBSD-src-76a17fc31644dd8ea6914a3b0c7daba6b85fe159.tar.gz |
Honor NOINET6 and disable IPv6 support in libmilter and sendmail if it
is set.
MFC after: 4 days
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmilter/Makefile | 6 | ||||
-rw-r--r-- | lib/libsm/Makefile | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lib/libmilter/Makefile b/lib/libmilter/Makefile index d75fcd4..3e89e33 100644 --- a/lib/libmilter/Makefile +++ b/lib/libmilter/Makefile @@ -4,9 +4,13 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail .PATH: ${SENDMAIL_DIR}/libmilter ${SENDMAIL_DIR}/libsm CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. -CFLAGS+=-DNETINET6 -DNOT_SENDMAIL -Dsm_snprintf=snprintf +CFLAGS+=-DNOT_SENDMAIL -Dsm_snprintf=snprintf CFLAGS+=-D_THREAD_SAFE +.if !defined(NOINET6) +CFLAGS+=-DNETINET6 +.endif + # User customizations to the sendmail build environment CFLAGS+=${SENDMAIL_CFLAGS} diff --git a/lib/libsm/Makefile b/lib/libsm/Makefile index c8ec07b..56e5ac3 100644 --- a/lib/libsm/Makefile +++ b/lib/libsm/Makefile @@ -4,7 +4,11 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail .PATH: ${SENDMAIL_DIR}/libsm CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. -CFLAGS+=-DNETINET6 -DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL +CFLAGS+=-DNEWDB -DNIS -DMAP_REGEX -DNOT_SENDMAIL + +.if !defined(NOINET6) +CFLAGS+=-DNETINET6 +.endif # User customizations to the sendmail build environment CFLAGS+=${SENDMAIL_CFLAGS} |