Tom Lane wrote:
> Also, right now we have got
>
> src/include/getaddrinfo.h
> src/include/getopt_long.h
>
> which really make me itch now that I am contemplating the possibility
> that we try to use libc-supplied code for these functions along with
> our own header definitions.
These particular header files look like they are robust enough to deal
with this case. But overall this isn't a great idea.
> I think the reason we've avoided putting such stuff into include/port/
> is that right now that directory consists exclusively of OS-specific
> files. Maybe we need another include subdirectory?
I think the idea is rather that you don't need to change call sites to
include the system header or our own. The symlink approach I mentioned
earlier might work.