[SR-Dev] git:janakj/postgres: We also need <sys/types.h> and <sys/socket.h> to get AF_INET on FreeBSD.

Jan Janak jan at iptel.org
Sun Feb 15 18:55:27 CET 2009


Module: sip-router
Branch: janakj/postgres
Commit: 9550df5a016e1729356104851eae8e476364dda1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=9550df5a016e1729356104851eae8e476364dda1

Author: Maxim Sobolev <sobomax at sippysoft.com>
Committer: Maxim Sobolev <sobomax at sippysoft.com>
Date:   Tue May 20 23:13:20 2008 +0000

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

---

 modules/db_postgres/pg_fld.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/modules/db_postgres/pg_fld.c b/modules/db_postgres/pg_fld.c
index c3bd09a..a9690a5 100644
--- a/modules/db_postgres/pg_fld.c
+++ b/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




More information about the sr-dev mailing list