Install asterisk1.2.17 'EM_UNIVERSAL_ARGUMENT' undeclared

i download asterisk1.2.17 ,when i make ,list follow error:
In file included from editline.c:4:
common.c: In function ‘ed_digit’:
common.c:405: error: ‘EM_UNIVERSAL_ARGUMENT’ undeclared (first use in this function)
common.c:405: error: (Each undeclared identifier is reported only once
common.c:405: error: for each function it appears in.)
In file included from editline.c:5:
emacs.c: In function ‘em_inc_search_next’:
emacs.c:474: error: ‘ED_SEARCH_NEXT_HISTORY’ undeclared (first use in this function)
emacs.c: In function ‘em_inc_search_prev’:
emacs.c:487: error: ‘ED_SEARCH_PREV_HISTORY’ undeclared (first use in this function)
In file included from editline.c:6:
vi.c: In function ‘vi_search_prev’:
vi.c:779: error: ‘ED_SEARCH_PREV_HISTORY’ undeclared (first use in this function)
vi.c: In function ‘vi_search_next’:

i checkout asterisk1.2 from svn, then make
the error is same.

i don’t know how to solve the problem.
expect someone help me. i appriciate

i have resolved it.
i copy asterisk-1.4.2/main/editline/fcns.h to asterisk-1.2.17/editline/, replace the old fcns.h.
Then can continue to compile asterisk 1.2.17