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 - [PATCH] HAVE_POLL undefined in SDL_poll.c, making it impossible to use.
Summary: [PATCH] HAVE_POLL undefined in SDL_poll.c, making it impossible to use.
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.7
Hardware: x86 Linux
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-15 10:18 UTC by tomwardio
Modified: 2017-12-19 19:15 UTC (History)
0 users

See Also:


Attachments
Patch to remove #undef (191 bytes, text/plain)
2017-12-15 10:18 UTC, tomwardio
Details

Note You need to log in before you can comment on or make changes to this bug.
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