changeset 432:cd9408568b77

Fix net related includes to build with FreeBSD.
author Aleksandr Rybalko <ray@ddteam.net>
date Thu, 20 Sep 2012 00:34:16 +0300
parents 207e16371a08
children 8284e9318ef7
files contrib/spcdns/src/luadns.c contrib/spcdns/src/netsimple.c contrib/spcdns/src/test.c
diffstat 3 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/spcdns/src/luadns.c	Thu Sep 20 00:32:40 2012 +0300
+++ b/contrib/spcdns/src/luadns.c	Thu Sep 20 00:34:16 2012 +0300
@@ -103,6 +103,8 @@
 #include <assert.h>
 
 #include <arpa/inet.h>
+#include <netinet/in.h>
+#include <sys/socket.h>
 
 #include <lua.h>
 #include <lauxlib.h>
--- a/contrib/spcdns/src/netsimple.c	Thu Sep 20 00:32:40 2012 +0300
+++ b/contrib/spcdns/src/netsimple.c	Thu Sep 20 00:34:16 2012 +0300
@@ -137,7 +137,7 @@
   if (rc == 0)
   {
     close(sock);
-    return ETIME;
+    return ETIMEDOUT;
   }
 
   bytes = recvfrom(sock,dest,*dsize,0,NULL,NULL);
--- a/contrib/spcdns/src/test.c	Thu Sep 20 00:32:40 2012 +0300
+++ b/contrib/spcdns/src/test.c	Thu Sep 20 00:34:16 2012 +0300
@@ -37,6 +37,8 @@
 
 #include <getopt.h>
 #include <arpa/inet.h>
+#include <netinet/in.h>
+#include <sys/socket.h>
 
 #include "dns.h"
 #include "mappings.h"