moonbridge

changeset 310:2807fdd2f8d5

Linux compatibility: do not set sun_len
author jbe
date Mon Dec 04 18:13:31 2017 +0100 (20 months ago)
parents 426848ae6108
children c9fec96fe392
files moonbridge.c
line diff
     1.1 --- a/moonbridge.c	Fri Nov 24 01:32:23 2017 +0100
     1.2 +++ b/moonbridge.c	Mon Dec 04 18:13:31 2017 +0100
     1.3 @@ -1972,7 +1972,6 @@
     1.4        if (strlen(path) > path_maxlen) {
     1.5          luaL_error(L, "Path name for local socket exceeded maximum length of %i characters", path_maxlen);
     1.6        }
     1.7 -      listener->type_specific.socket.addr.addr_un.sun_len = sizeof(listener->type_specific.socket.addr.addr_un);
     1.8        listener->type_specific.socket.addr.addr_un.sun_family = AF_LOCAL;
     1.9        strcpy(listener->type_specific.socket.addr.addr_un.sun_path, path);
    1.10        listener->type_specific.socket.addrlen = sizeof(listener->type_specific.socket.addr.addr_un);

Impressum / About Us