We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3913

Summary: SDL_net build fixes for OS/2
Product: SDL_net Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: OS/2   
Attachments: sdlnet_os2.patch
sdlnet_os2_2.patch

Description Ozkan Sezer 2017-10-23 11:42:51 UTC
Created attachment 3032 [details]
sdlnet_os2.patch

The attached patch applies some OS/2 build fixes to SDL_net
when using Open Watcom.

Regards.
Comment 1 Sam Lantinga 2017-10-23 15:27:07 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_net/rev/08b8e85c1911
Comment 2 Ozkan Sezer 2017-10-23 15:34:11 UTC
Created attachment 3035 [details]
sdlnet_os2_2.patch

Attached a correction patch to the FIXME I added:

IBM OS/2 socket implementation doesn't provide a function to reset
socket errno: therefore, do not set errno in SDLNet_SetLastError().
Comment 3 Ozkan Sezer 2017-10-23 16:34:28 UTC
(forgot reopening after attaching the 2nd patch)
Comment 4 Sam Lantinga 2017-10-23 18:54:38 UTC
This is in!
https://hg.libsdl.org/SDL_net/rev/936c77fee373