From 6e1e162e392142f33e5d8ede910d67736bb6a02e Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Thu, 10 Jul 2014 00:11:09 +0200 Subject: [PATCH] FreeBSD has a sockaddr_un.sun_len field: fill it It had this field at latest since "Tue May 24 10:09:53 1994 UTC", according to FreeBSD's svn repo so this isn't a new thing in need of version detection. Signed-off-by: Giel van Schijndel --- src/makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/makefile b/src/makefile index 8d3521e..ea7c18b 100644 --- a/src/makefile +++ b/src/makefile @@ -175,7 +175,7 @@ SOCKET_linux=usocket.o SO_freebsd=so O_freebsd=o CC_freebsd=gcc -DEF_freebsd=-DLUASOCKET_$(DEBUG) -DLUA_$(COMPAT)_MODULE \ +DEF_freebsd=-DLUASOCKET_$(DEBUG) -DUNIX_HAS_SUN_LEN -DLUA_$(COMPAT)_MODULE \ -DLUASOCKET_API='__attribute__((visibility("default")))' \ -DUNIX_API='__attribute__((visibility("default")))' \ -DMIME_API='__attribute__((visibility("default")))'