]> granicus.if.org Git - postgresql/commit
In contrib/uuid-ossp, #include headers needed for ntohl() and ntohs().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Dec 2016 03:24:13 +0000 (22:24 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 18 Dec 2016 03:24:44 +0000 (22:24 -0500)
commit20c27fdfd3af8da68837ab1cbea08100619f91b6
tree86d31a7470e4b703d1d8c8e954d5ad3f00b23209
parent779325478e7e867c636c3e1ad1e5df734e7549e5
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.
contrib/uuid-ossp/uuid-ossp.c