1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-08 03:45:57 +00:00
wine/dlls/ws2_32
Jinoh Kang 0deab78dc5 ws2_32: Avoid relying on linux/ipx.h to define SOL_IPX.
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: da4e359a70
2023-08-05 10:45:07 +09:00
..
tests ws2_32: Move the event reset in WSAEnumNetworkEvents() to the server. 2023-07-24 22:51:06 +02:00
async.c
hosts
inaddr.c
Makefile.in ws2_32: Provide same address order from gethostbyname() on consequent calls. 2023-02-01 17:09:37 +01:00
networks
protocol
protocol.c ws2_32: Use nameless union/structs. 2023-07-05 17:03:30 +02:00
services
socket.c ws2_32: Move the event reset in WSAEnumNetworkEvents() to the server. 2023-07-24 22:51:06 +02:00
unixlib.c ws2_32: Avoid relying on linux/ipx.h to define SOL_IPX. 2023-08-05 10:45:07 +09:00
version.rc
ws2_32_private.h ws2_32: Use nameless union/structs. 2023-07-05 17:03:30 +02:00
ws2_32.spec