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 4003

Summary: [PATCH] HAVE_POLL undefined in SDL_poll.c, making it impossible to use.
Product: SDL Reporter: tomwardio
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.7   
Hardware: x86   
OS: Linux   
Attachments: Patch to remove #undef

Description tomwardio 2017-12-15 10:18:50 UTC
Created attachment 3114 [details]
Patch to remove #undef

HAVE_POLL is correctly defined in SDL_config.h when running configure. However, in the only place where it's used, it's undefined at the start of the file.

The attached patch removes this undefine, allowing for use of poll().
Comment 1 Sam Lantinga 2017-12-19 19:15:24 UTC
Thanks! I think this was disabled for debugging a while back.

Good catch!
https://hg.libsdl.org/SDL/rev/c7577c45151a