Skip to content
Snippets Groups Projects
Commit 7df1bfc3 authored by Michael Tüxen's avatar Michael Tüxen
Browse files

Improve compilation on non Linux platforms.

parent 399c551d
No related branches found
No related tags found
No related merge requests found
...@@ -125,7 +125,7 @@ void wire_conn_bind_listen(struct wire_conn *listen_conn, u16 port) ...@@ -125,7 +125,7 @@ void wire_conn_bind_listen(struct wire_conn *listen_conn, u16 port)
} }
memset(&sa_v4, 0, sizeof(sa_v4)); memset(&sa_v4, 0, sizeof(sa_v4));
#ifndef linux #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
sa_v4.sin_len = sizeof(sa_v4); sa_v4.sin_len = sizeof(sa_v4);
#endif #endif
sa_v4.sin_family = AF_INET; sa_v4.sin_family = AF_INET;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment