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:
parent
727d8c8134
commit
aaa975e19d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user