Compiling Apache from source on Ubuntu 9.10 (Karmic Koala)

Last week my OS got upgraded to Ubuntu 9.10. After that I wanted to compile Apache from source. Unfortunately I got this build error:

htpasswd.c:101: error: conflicting types for ‘getline’
/usr/include/stdio.h:651: note: previous declaration of ‘getline’ was here
make[2]: *** [htpasswd.o] Error 1

This is fixed by replacing getline with parseline on line 651 in /usr/include/stdio.h

Kudos to HowtoForge for pointing this out.