[COMMITTERS] pgsql: In contrib/uuid-ossp,#include headers needed for ntohl() and nt - Mailing list pgsql-committers

From Tom Lane
Subject [COMMITTERS] pgsql: In contrib/uuid-ossp,#include headers needed for ntohl() and nt
Date
Msg-id E1cIS5x-0001uz-Hn@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
In contrib/uuid-ossp, #include headers needed for ntohl() and ntohs().

Oversight in commit b8cc8f947.  I just noticed this causes compiler
warnings on FreeBSD, and it really ought to cause warnings elsewhere too:
all references I can find say that <arpa/inet.h> is required for these.
We have a lot of code elsewhere that thinks that both <netinet/in.h>
and <arpa/inet.h> should be included for these functions, so do it that
way here too, even though <arpa/inet.h> ought to be sufficient according
to the references I consulted.

Back-patch to 9.4 where the previous commit landed.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4a0a34b5b678f0292d3a85a85fb10c79c393be26

Modified Files
--------------
contrib/uuid-ossp/uuid-ossp.c | 4 ++++
1 file changed, 4 insertions(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: [COMMITTERS] pgsql: Fix FK-based join selectivity estimation for semi/antijoins.
Next
From: Noah Misch
Date:
Subject: [COMMITTERS] pgsql: MSVC: Position MSBFLAGS after flags it might override.