You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2017-07-25 04:53:11 +0000, wrote:
Overview:
INFTIM macro was not defined on my local system causing compilation to fail.
Steps
don't have INFTIM macro defined (maybe I'm missing a driver?)
clone SDL from mercurial or one of the many github mirrors
build using CMAKE and add_subdirectory
Expected Result:
built SDL2 libraries
Actual Result:
compilation failure due to undefined INFTIM macro.
Additional Information:
SDL Version 2.0.5.1.5 on Ubuntu 16.04 using CMAKE
Proposed Fix:
Through googling and inspection I determined that INFTIM should be set to (-1).
Option # 1: define macro (probably the safest)
#ifndef INFTIM
#define INFTIM (-1)
#endif //#ifndef INFTIM
static int
SNDIO_CaptureFromDevice(_THIS, void *buffer, int buflen)
{
Option # 2: remove use of the macro
poll(this->hidden->pfd, nfds, INFTIM)
to
poll(this->hidden->pfd, nfds, -1)
but this assumes that all poll(...) implementations recognize -1 as infinite timeout.
On 2017-07-25 06:01:48 +0000, Ryan C. Gordon wrote:
This is probably a bug in the CMake file; sndio is meant for OpenBSD, not Linux.
--ryan.
On 2017-07-25 06:38:26 +0000, Ozkan Sezer wrote:
(In reply to Ryan C. Gordon from comment # 1)
This is probably a bug in the CMake file; sndio is meant for OpenBSD, not
Linux.
There is a linux port at sndio.org, so people can actually experiment
with sndio on linux if they want to.
This bug report was migrated from our old Bugzilla tracker.
Reported in version: HG 2.1
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2017-07-25 04:53:11 +0000, wrote:
On 2017-07-25 06:01:48 +0000, Ryan C. Gordon wrote:
On 2017-07-25 06:38:26 +0000, Ozkan Sezer wrote:
On 2017-07-25 23:41:21 +0000, wrote:
On 2017-08-07 04:27:40 +0000, Ryan C. Gordon wrote:
The text was updated successfully, but these errors were encountered: