[Commits] SDL: sndio: Fix for some platforms (Linux, for example) that don...

libsdl.org revision control commits-owner at libsdl.org
Sun Aug 6 21:26:57 PDT 2017


details:   https://hg.libsdl.org/SDL/rev/c4ff854c6586
changeset: 11193:c4ff854c6586
user:      Ryan C. Gordon <icculus at icculus.org>
date:      Mon Aug 07 00:25:18 2017 -0400
description:
sndio: Fix for some platforms (Linux, for example) that don't define INFTIM.

Fixes Bugzilla #3712.

diffstat:

 src/audio/sndio/SDL_sndioaudio.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r 3c8377f1a323 -r c4ff854c6586 src/audio/sndio/SDL_sndioaudio.c
--- a/src/audio/sndio/SDL_sndioaudio.c	Sat Aug 05 22:10:55 2017 +0200
+++ b/src/audio/sndio/SDL_sndioaudio.c	Mon Aug 07 00:25:18 2017 -0400
@@ -44,6 +44,10 @@
 #include "SDL_loadso.h"
 #endif
 
+#ifndef INFTIM
+#define INFTIM -1
+#endif
+
 static struct sio_hdl * (*SNDIO_sio_open)(const char *, unsigned int, int);
 static void (*SNDIO_sio_close)(struct sio_hdl *);
 static int (*SNDIO_sio_setpar)(struct sio_hdl *, struct sio_par *);


More information about the commits mailing list