Allow to compile with both GCC 2.95 and 3.1.

This commit is contained in:
David E. O'Brien 2002-04-08 21:22:58 +00:00
parent a48ca36999
commit d2c10ccbd8

View File

@ -11,7 +11,7 @@ MAN= lukemftpd.8 ftpd.conf.5 ftpusers.5
SRCS= cmds.c conf.c ftpd.c ftpcmd.y popen.c
WFORMAT= 0
CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} #-I${LUKEMFTPD}/src
CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} -I${LUKEMFTPD}/src
YFLAGS=
LDADD= -lmd -lcrypt -lutil
@ -30,7 +30,8 @@ LDADD+= -lm
CLEANFILES+= ls-unmain.c
ls-unmain.c: ls.c
sed -e 's/^main(/ls_main(/g' ${.ALLSRC} > ${.TARGET}
sed -e 's/^main(/ls_main(/g' -e 's,extern.h,${LSDIR}/extern.h,' \
${.ALLSRC} > ${.TARGET}
.if !defined(NOPAM)
CFLAGS+= -DUSE_PAM