30 Sep
2022
30 Sep
'22
4 p.m.
On Fri Sep 30 12:00:09 2022 +0000, Joel Holdsworth wrote:
Ideally this would be done with `ntohs`, but I'm not sure there is a good way to pull it in here without causing chaos. We could `#include <winsock2.h>`, but that seems to conflict with `<sys/socket.h>` and friends. @jhol You are on the Unix side of the line, so for `ntohs` you want:
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/951#note_9860