Browse Source

We also need <sys/types.h> and <sys/socket.h> to get AF_INET on FreeBSD.

Maxim Sobolev 17 years ago
parent
commit
9550df5a01
1 changed files with 3 additions and 1 deletions
  1. 3 1
      modules/db_postgres/pg_fld.c

+ 3 - 1
modules/db_postgres/pg_fld.c

@@ -44,9 +44,11 @@
 #include "../../mem/mem.h"
 #include "../../dprint.h"
 
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
 #include <stdint.h>
 #include <string.h>
-#include <netinet/in.h>
 
 /**
  * This is the epoch time in time_t format, this value is used to convert