• Jinoh Kang's avatar
    server: Avoid relying on linux/ipx.h to define SOL_IPX. · 915c3910
    Jinoh Kang authored
    musl libc doesn't supply any definitions for IPX, such as the SOL_IPX
    macro.  However, it still provides linux/ipx.h from Linux uAPI header
    files if it exists.
    
    Linux kernel wouldn't drop linux/ipx.h from uAPI headers until 5.15,
    although IPX support has already been marked obsolete since 2018.
    
    Fix this by not defining HAS_IPX if linux/ipx.h has been included but
    nothing defines the SOL_IPX macro.
    
    Status of IPX support from other libcs are noted below:
    
    - bionic: netipx/ipx.h does not exist.  linux/ipx.h may or may not
      exist.  Note that sys/socket.h defines SOL_IPX even if linux/ipx.h is
      missing.
    
    - glibc: netipx/ipx.h exists.  In this case, Wine assumes IPX support
      even if the operating system does not support it in runtime.
    
    - BSD variants: netipx/ipx.h may or may not exist.  linux/ipx.h does not
      exist.  Some BSDs supply SO_DEFAULT_HEADERS instead of SOL_IPX.
    
    Fixes: 41cc117b
    915c3910
Name
Last commit
Last update
..
Makefile.in Loading commit data...
async.c Loading commit data...
atom.c Loading commit data...
change.c Loading commit data...
class.c Loading commit data...
clipboard.c Loading commit data...
completion.c Loading commit data...
console.c Loading commit data...
debugger.c Loading commit data...
device.c Loading commit data...
directory.c Loading commit data...
event.c Loading commit data...
fd.c Loading commit data...
file.c Loading commit data...
file.h Loading commit data...
handle.c Loading commit data...
handle.h Loading commit data...
hook.c Loading commit data...
mach.c Loading commit data...
mailslot.c Loading commit data...
main.c Loading commit data...
mapping.c Loading commit data...
mutex.c Loading commit data...
named_pipe.c Loading commit data...
object.c Loading commit data...
object.h Loading commit data...
process.c Loading commit data...
process.h Loading commit data...
procfs.c Loading commit data...
protocol.def Loading commit data...
ptrace.c Loading commit data...
queue.c Loading commit data...
region.c Loading commit data...
registry.c Loading commit data...
request.c Loading commit data...
request.h Loading commit data...
security.h Loading commit data...
semaphore.c Loading commit data...
serial.c Loading commit data...
signal.c Loading commit data...
sock.c Loading commit data...
symlink.c Loading commit data...
thread.c Loading commit data...
thread.h Loading commit data...
timer.c Loading commit data...
token.c Loading commit data...
trace.c Loading commit data...
unicode.c Loading commit data...
unicode.h Loading commit data...
user.c Loading commit data...
user.h Loading commit data...
window.c Loading commit data...
wineserver.de.UTF-8.man.in Loading commit data...
wineserver.fr.UTF-8.man.in Loading commit data...
wineserver.man.in Loading commit data...
winstation.c Loading commit data...