Hi,

I ve made a small patch for 1.8 branch though. Does it suit ? (ie I
made all the fields available, not sure if would be useful one day).

Kind regards.
From 7dff470cdbe0ea00ce78b504e95f8c639a11a365 Mon Sep 17 00:00:00 2001
From: David CARLIER <[email protected]>
Date: Wed, 14 Dec 2016 13:17:04 +0000
Subject: [PATCH] BUG/MINOR: hlua: *bsd fix

s6_addr* fields are not available in the userland on
BSD systems in general. needs backport to 1.7.x
---
 src/hlua_fcn.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/hlua_fcn.c b/src/hlua_fcn.c
index 5ac533a0..6892fdaf 100644
--- a/src/hlua_fcn.c
+++ b/src/hlua_fcn.c
@@ -39,6 +39,12 @@ static int class_listener_ref;
 
 #define STATS_LEN (MAX((int)ST_F_TOTAL_FIELDS, (int)INF_TOTAL_FIELDS))
 
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
+#define s6_addr8	__u6_addr.__u6_addr8
+#define s6_addr16	__u6_addr.__u6_addr16
+#define s6_addr32	__u6_addr.__u6_addr32
+#endif
+
 static struct field stats[STATS_LEN];
 
 int hlua_checkboolean(lua_State *L, int index)
-- 
2.11.0

Reply via email to