libreplace is currently linking against libsocket and libnsl but we do not use any function from it at least on Linux. So only link against it if libc doesn't provide the functions.
Created attachment 15562 [details] patch for 4.11
Created attachment 15563 [details] patch for 4.10
Comment on attachment 15562 [details] patch for 4.11 LGTM
Karolin, could you please apply the patches to the relevant branches? Thanks!
(In reply to Andreas Schneider from comment #4) Pushed to autobuild-v4-{11,10}-test.
(In reply to Karolin Seeger from comment #5) Pushed to both branches. Closing out bug report. Thanks!