>> The answer probably is that pqformat.h needs to include <errno.h>,
>> but I'm just curious to understand why it didn't before ...
Well, I noticed that <stdlib.h> pulls in <errno.h> on my box, so that
explains why I didn't see a problem. I still don't see the connection
between the includes I killed and <errno.h> on your box, though...
curious. Anyway I committed the change to pqformat.c.
regards, tom lane