melonDS icon indicating copy to clipboard operation
melonDS copied to clipboard

Fix build for clang

Open Patater opened this issue 1 year ago • 2 comments

Remove declaring _POSIX_SOURCE manually. Let the compiler take care of this on its own where it can. Additionally, include a missing header file for the definition of struct sockaddr_in, which we need before we can allocate the struct. With these fixes, we can build with Clang 18.1.5, although there are many warnings.

Patater avatar Jul 07 '24 14:07 Patater

Build failed on Windows. I've updated the commit to restore the _POSIX_SOURCE defines when building for Windows.

Patater avatar Jul 07 '24 14:07 Patater

Rebased on latest master

Patater avatar Jul 12 '24 17:07 Patater