Don't depend on getline being on the build machine. That's

not the case for FreeBSD 7.x machines.
This commit is contained in:
Marcel Moolenaar 2012-05-19 02:30:10 +00:00
parent 727d8c8134
commit aaa975e19d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=235638
2 changed files with 5 additions and 2 deletions

View File

@ -39,8 +39,9 @@ magic.mgc: mkmagic magic
CLEANFILES+= mkmagic
build-tools: mkmagic
mkmagic: apprentice.c funcs.c magic.c print.c
${CC} ${CFLAGS} -DCOMPILE_ONLY ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
mkmagic: apprentice.c funcs.c getline.c magic.c print.c
${CC} ${CFLAGS} -DCOMPILE_ONLY -DHOSTPROG ${LDFLAGS} \
-o ${.TARGET} ${.ALLSRC}
FILEVER!= awk '$$1 == "\#define" && $$2 == "VERSION" { print $$3; exit }' \
${.CURDIR}/config.h

View File

@ -39,7 +39,9 @@
#define HAVE_FSEEKO 1
/* Define to 1 if you have the `getline' function. */
#ifndef HOSTPROG
#define HAVE_GETLINE 1
#endif
/* Define to 1 if you have the <getopt.h> header file. */
#define HAVE_GETOPT_H 1