IEEE Std 1003.1 specifies <arpa/inet.h> for the ntohl() prototype:

http://pubs.opengroup.org/onlinepubs/000095399/functions/ntohl.html

<netinet/in.h> works, but it appears to be provided as support for
legacy code.
pull/407/head
Matthew Seaman 2016-03-30 12:34:36 +01:00
parent 9acce4edf5
commit b9b80f231a
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@
#include "postgres.h" #include "postgres.h"
#include "funcapi.h" #include "funcapi.h"
#include <netinet/in.h> #include <arpa/inet.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#ifdef HAVE_INTTYPES_H #ifdef HAVE_INTTYPES_H