Permalink
Browse files

Merge pull request #1 from ccesario/master

Fix check DB and FreeBSD compatibility
  • Loading branch information...
2 parents cb7f838 + d609988 commit c10e642ebcd03c86cda3e571807d67c99471e8e2 @andihofmeister committed Aug 7, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 src/sgDb.c
  2. +5 −0 src/sgRequest.c
View
@@ -126,7 +126,7 @@ static char *sgStripUrl(const char *url)
}
-#if DB_VERSION_MAJOR < 4
+#if DB_VERSION_MAJOR <= 4
#define DBOPEN(dbp, txnid, dbfile, database, dbmode, flag, fmode) \
open(dbp, dbfile, database, dbmode, flag, fmode)
#else
View
@@ -32,6 +32,11 @@
#include <netdb.h>
#include <arpa/inet.h>
+#if defined(__FreeBSD__)
+ #include <sys/socket.h>
+ #include <netinet/in.h>
+#endif
+
static int reverselookup = 0;
static int stripRealm = 0;
static char * realm = NULL;

0 comments on commit c10e642

Please sign in to comment.