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 <me@mortis.eu>
This commit is contained in:
Giel van Schijndel 2014-07-10 00:11:09 +02:00
parent 5114d70be6
commit 6e1e162e39

View file

@ -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")))'