Fix compilation of ftpcmd.y without -DINET6.
Respect MK_INET6_SUPPORT in Makefile. Requested by: Attila Nagy <bra at fsn dot hu> MFC after: 1 week
This commit is contained in:
parent
1df6229aea
commit
31ee80d88a
@ -8,7 +8,6 @@ MAN= ftpd.8 ftpchroot.5
|
||||
SRCS= ftpd.c ftpcmd.y logwtmp.c popen.c
|
||||
|
||||
CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING
|
||||
CFLAGS+=-DINET6
|
||||
CFLAGS+=-I${.CURDIR}
|
||||
YFLAGS=
|
||||
WARNS?= 2
|
||||
@ -28,6 +27,10 @@ CFLAGS+=-Dmain=ls_main -I${.CURDIR}/${LSDIR}
|
||||
DPADD+= ${LIBM}
|
||||
LDADD+= -lm
|
||||
|
||||
.if ${MK_INET6_SUPPORT} != "no"
|
||||
CFLAGS+=-DINET6
|
||||
.endif
|
||||
|
||||
.if ${MK_PAM_SUPPORT} != "no"
|
||||
CFLAGS+=-DUSE_PAM
|
||||
DPADD+= ${LIBPAM}
|
||||
|
@ -1145,10 +1145,14 @@ static void help(struct tab *, char *);
|
||||
static struct tab *
|
||||
lookup(struct tab *, char *);
|
||||
static int port_check(const char *);
|
||||
#ifdef INET6
|
||||
static int port_check_v6(const char *);
|
||||
#endif
|
||||
static void sizecmd(char *);
|
||||
static void toolong(int);
|
||||
#ifdef INET6
|
||||
static void v4map_data_dest(void);
|
||||
#endif
|
||||
static int yylex(void);
|
||||
|
||||
static struct tab *
|
||||
|
Loading…
Reference in New Issue
Block a user