summaryrefslogtreecommitdiff
path: root/dselect/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'dselect/Makefile.in')
-rw-r--r--dselect/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/dselect/Makefile.in b/dselect/Makefile.in
index d82f763af..f50b349d8 100644
--- a/dselect/Makefile.in
+++ b/dselect/Makefile.in
@@ -58,7 +58,7 @@ $(srcdir)/helpmsgs.h $(srcdir)/helpmsgs.cc: helpmsgs.src $(srcdir)/mkhelpmsgs.pl
curkeys.h: keyoverride $(srcdir)/mkcurkeys.pl
cursesfile=`echo '#include <curses.h>' | \
- $(CC) -E - | grep 'curses.h' | head -1 | \
+ $(CC) -E - | grep 'curses.h' | head -n 1 | \
$(SED) -e 's/^[^"]*"//; s/".*$$//'`; \
if [ "$$cursesfile" = "" ]; then echo "can't find curses file"; exit 1; fi; \
perl $(srcdir)/mkcurkeys.pl $< $$cursesfile > $@