#include <errno.h>
in /usr/local/src/postgresql-7.2.4/src/include/pg_config.h.in
before running ./configure