diff options
author | Dmitry Sivachenko <demon@FreeBSD.org> | 2016-12-21 00:25:58 +0800 |
---|---|---|
committer | Dmitry Sivachenko <demon@FreeBSD.org> | 2016-12-21 00:25:58 +0800 |
commit | e09b81c711cf6d7d98390e79452b5165adda0b74 (patch) | |
tree | 8e1a0f375d43b2c186f873ac6c180b79f513806d /net/haproxy/files | |
parent | 5185b7b626dc598ff8c0dfb2bb92ec161bba3d97 (diff) | |
download | freebsd-ports-gnome-e09b81c711cf6d7d98390e79452b5165adda0b74.tar.gz freebsd-ports-gnome-e09b81c711cf6d7d98390e79452b5165adda0b74.tar.zst freebsd-ports-gnome-e09b81c711cf6d7d98390e79452b5165adda0b74.zip |
Add forgotten patch to fix lua build.
PR: 215444
Submitted by: Franco Fichtner <franco@opnsense.org>
Diffstat (limited to 'net/haproxy/files')
-rw-r--r-- | net/haproxy/files/patch-src-hlua_fcn.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/haproxy/files/patch-src-hlua_fcn.c b/net/haproxy/files/patch-src-hlua_fcn.c new file mode 100644 index 000000000000..827be400f819 --- /dev/null +++ b/net/haproxy/files/patch-src-hlua_fcn.c @@ -0,0 +1,15 @@ +--- src/hlua_fcn.c.orig 2016-12-17 13:58:44.786067000 +0300 ++++ src/hlua_fcn.c 2016-12-17 13:59:17.551256000 +0300 +@@ -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) |