Skip to content
Snippets Groups Projects
Commit 01426184 authored by Fotios Valasiadis's avatar Fotios Valasiadis
Browse files

server: Check for SO_DEFAULT_HEADERS before using it.


Not doing so after commit 41cc117b broke musl libc compatibility.

Tested the patch in my void 64bit musl install and it compiled properly.

Signed-off-by: default avatarFotios Valasiadis <fvalasiad@gmail.com>
parent b5e19a33
No related branches found
No related tags found
No related merge requests found
Pipeline #12972 failed
......@@ -1880,7 +1880,7 @@ static int init_socket( struct sock *sock, int family, int type, int protocol )
#ifdef SOL_IPX
setsockopt( sockfd, SOL_IPX, IPX_TYPE, &ipx_type, sizeof(ipx_type) );
#else
#elif defined(SO_DEFAULT_HEADERS)
struct ipx val;
/* Should we retrieve val using a getsockopt call and then
* set the modified one? */
......
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