Asterisk 1.2.10 and RHEL 5

Having a terrible time trying to compile Asterisk 1.2.10 in Red Hat Enterprise version 5. Getting the below error. Anyone have any suggestions ?

chan_phone.c:41:29: error: linux/compiler.h: No such file or directory
make[1]: *** [chan_phone.o] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/asterisk-1.2.10/channels’
make: *** [subdirs] Error 1

Ok, for anyone with a similar issue, here it is:

Go into the Asterisk source code, under channels, and edit chan_phone.c removing the line

include => compiler.h

around line 51 I believe.

Compiles fine after that.