This patch does not fix h_errno linking behavior as well, which still breaks programs such as WineX (and Wine, I believe): gcc -o wine miscemu/miscemu.o -L./dlls -lntdll -L./library -lwine -L./unicode -lwine_unicode -lm ./library/libwine.so: undefined reference to `h_errno' collect2: ld returned 1 exit status This worked fine before -5.