[Zrouter-src] ZRouter.org: push to ZRouter contrib/spcdns/src/luadns.c contrib...
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Wed Sep 19 21:39:13 UTC 2012
details: http://zrouter.org/hg/zrouter//rev/cd9408568b77
changeset: 432:cd9408568b77
user: Aleksandr Rybalko <ray at ddteam.net>
date: Thu Sep 20 00:34:16 2012 +0300
description:
Fix net related includes to build with FreeBSD.
diffstat:
contrib/spcdns/src/luadns.c | 2 ++
contrib/spcdns/src/netsimple.c | 2 +-
contrib/spcdns/src/test.c | 2 ++
3 files changed, 5 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 207e16371a08 -r cd9408568b77 contrib/spcdns/src/luadns.c
--- 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>
diff -r 207e16371a08 -r cd9408568b77 contrib/spcdns/src/netsimple.c
--- 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);
diff -r 207e16371a08 -r cd9408568b77 contrib/spcdns/src/test.c
--- 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"
More information about the Zrouter-src
mailing list