diff --git a/lib/libncurses/Makefile b/lib/libncurses/Makefile index f13f9178bca7..234e5cbcce44 100644 --- a/lib/libncurses/Makefile +++ b/lib/libncurses/Makefile @@ -329,7 +329,7 @@ build-tools: make_hash make_keys make_keys: make_keys.c names.c curses.h ncurses_def.h ${CC} -o $@ ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c -make_hash: comp_hash.c hashsize.h curses.h +make_hash: comp_hash.c hashsize.h curses.h ncurses_def.h ${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \ ${NCURSES}/ncurses/tinfo/comp_hash.c diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index f13f9178bca7..234e5cbcce44 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -329,7 +329,7 @@ build-tools: make_hash make_keys make_keys: make_keys.c names.c curses.h ncurses_def.h ${CC} -o $@ ${CFLAGS} ${NCURSES}/ncurses/tinfo/make_keys.c -make_hash: comp_hash.c hashsize.h curses.h +make_hash: comp_hash.c hashsize.h curses.h ncurses_def.h ${CC} -o $@ ${CFLAGS} -DMAIN_PROGRAM \ ${NCURSES}/ncurses/tinfo/comp_hash.c