summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2003-01-06 03:03:53 +0000
committerobrien <obrien@FreeBSD.org>2003-01-06 03:03:53 +0000
commitc5fa1fb790dadb92e5f5ae8cfbc2646aa8813a06 (patch)
tree05e5ad9ecadb17dcfc3a2874ccca8b64bc29e92c /libexec
parenta5e5d8a2c1a6e78b186579817e7b3beea8404316 (diff)
downloadFreeBSD-src-c5fa1fb790dadb92e5f5ae8cfbc2646aa8813a06.zip
FreeBSD-src-c5fa1fb790dadb92e5f5ae8cfbc2646aa8813a06.tar.gz
Make the "nbsd_20030105" import build.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/lukemftpd/Makefile5
-rw-r--r--libexec/lukemftpd/nbsd2fbsd.h11
-rw-r--r--libexec/lukemftpd/util.h3
3 files changed, 18 insertions, 1 deletions
diff --git a/libexec/lukemftpd/Makefile b/libexec/lukemftpd/Makefile
index 138d0f5..9a702d5 100644
--- a/libexec/lukemftpd/Makefile
+++ b/libexec/lukemftpd/Makefile
@@ -4,15 +4,18 @@
MAINTAINER= obrien
LUKEMFTPD= ${.CURDIR}/../../contrib/lukemftpd
-.PATH: ${LUKEMFTPD}/src
+.PATH: ${LUKEMFTPD}/src ${LUKEMFTPD}/libnetbsd
PROG= lukemftpd
MAN= lukemftpd.8 ftpd.conf.5 ftpusers.5
MLINKS= ftpusers.5 ftpchroot.5
SRCS= cmds.c conf.c ftpd.c ftpcmd.y popen.c
+SRCS+= strsuftoll.c
WFORMAT= 0
+CFLAGS+= -include nbsd2fbsd.h
CFLAGS+= -I${.CURDIR} -I${LUKEMFTPD} -I${LUKEMFTPD}/src
+CFLAGS+= -I${.CURDIR}/../..//lib/libc/stdtime
YFLAGS=
LDADD= -lcrypt -lutil
diff --git a/libexec/lukemftpd/nbsd2fbsd.h b/libexec/lukemftpd/nbsd2fbsd.h
new file mode 100644
index 0000000..ca26de7
--- /dev/null
+++ b/libexec/lukemftpd/nbsd2fbsd.h
@@ -0,0 +1,11 @@
+/* $FreeBSD$ */
+
+/* XXX: Depend on our system headers protecting against multiple includes. */
+#include <paths.h>
+#undef _PATH_FTPUSERS
+
+#include <pwd.h>
+
+#define LOGIN_NAME_MAX MAXLOGNAME /* <sys/param.h> */
+
+#define _DIAGASSERT(x)
diff --git a/libexec/lukemftpd/util.h b/libexec/lukemftpd/util.h
new file mode 100644
index 0000000..91ce241
--- /dev/null
+++ b/libexec/lukemftpd/util.h
@@ -0,0 +1,3 @@
+/* $FreeBSD$ */
+
+#include <libutil.h>
OpenPOWER on IntegriCloud