Don't try to compile in INET6 support when NOINET6 is defined.

This commit is contained in:
Steve Price 2000-04-15 20:45:52 +00:00
parent aa50d936fd
commit 4f9bc6c6b7
3 changed files with 12 additions and 3 deletions

View File

@ -30,7 +30,10 @@ LIB= ipsec
SHLIB_MAJOR= 0
SHLIB_MINOR= 0
CFLAGS+=-I${.OBJDIR}
CFLAGS+=-DIPSEC_DEBUG -DIPSEC -DINET6
CFLAGS+=-DIPSEC_DEBUG -DIPSEC
.if !defined(NOINET6)
CFLAGS+=-DINET6
.endif
.PATH: ${.CURDIR}/../../sys/netkey
SRCS= pfkey.c pfkey_dump.c

View File

@ -11,7 +11,10 @@ CLEANFILES=tokdefs.h version.c
DEFS= -DHAVE_SYS_IOCCOM_H=1 -DHAVE_SYS_SOCKIO_H=1 \
-DHAVE_ETHER_HOSTTON=1 -DHAVE_STRERROR=1 \
-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1 -DINET6
-DHAVE_SOCKADDR_SA_LEN=1 -DLBL_ALIGN=1
.if !defined(NOINET6)
DEFS+= -DINET6
.endif
CFLAGS+=-I. -Dyylval=pcap_lval ${DEFS}

View File

@ -17,7 +17,10 @@ CFLAGS+=-DFACILITY=LOG_AUTH -DHOSTS_ACCESS -DNETGROUP -DDAEMON_UMASK=022 \
-DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 \
-DHOSTS_DENY=\"/etc/hosts.deny\" -DHOSTS_ALLOW=\"/etc/hosts.allow\" \
-DSYS_ERRLIST_DEFINED -DALWAYS_HOSTNAME
CFLAGS+=-DINET6 -DUSE_GETIPNODEBY
CFLAGS+=-DUSE_GETIPNODEBY
.if !defined(NOINET6)
CFLAGS+=-DINET6
.endif
SRCS= clean_exit.c diag.c eval.c fix_options.c fromhost.c \
hosts_access.c hosts_ctl.c misc.c myvsyslog.c options.c \