Here is a patch to get Emacs to compiler under Mac OS X 10.4: