All callers of helpfile() are #ifdef SMALL so only define that
authormillert <millert@openbsd.org>
Tue, 13 May 2014 02:34:58 +0000 (02:34 +0000)
committermillert <millert@openbsd.org>
Tue, 13 May 2014 02:34:58 +0000 (02:34 +0000)
function when SMALL is not defined.  OK guenther@

distrib/special/less/Makefile
usr.bin/less/main.c

index d258f8b..d2c89b8 100644 (file)
@@ -1,11 +1,11 @@
-#      $OpenBSD: Makefile,v 1.6 2014/05/10 18:15:31 deraadt Exp $
+#      $OpenBSD: Makefile,v 1.7 2014/05/13 02:34:58 millert Exp $
 
 PROG=  less
 SRCS=  main.c screen.c brac.c ch.c charset.c cmdbuf.c command.c cvt.c \
        decode.c edit.c filename.c forwback.c ifile.c input.c jump.c \
        line.c linenum.c mark.c optfunc.c option.c opttbl.c os.c output.c \
        pattern.c position.c prompt.c search.c signal.c ttyin.c version.c
-CFLAGS=        ${PIPE} ${DEBUG} -I${.CURDIR} -DHELPDIR=\"${HELPDIR}\"
+CFLAGS=        ${PIPE} ${DEBUG} -I${.CURDIR}
 
 DPADD= ${LIBOCURSES}
 LDADD= -locurses
index 3b63194..0b7940f 100644 (file)
@@ -421,8 +421,10 @@ quit(status)
        exit(status);
 }
 
+#if !SMALL
        public char *
 helpfile(void)
 {
        return (less_is_more ? HELPDIR "/more.help" : HELPDIR "/less.help");
 }
+#endif /* !SMALL */