sndio: Fix for some platforms (Linux, for example) that don't define INFTIM.

Fixes Bugzilla #3712.
This commit is contained in:
Ryan C. Gordon 2017-08-07 00:25:18 -04:00
parent 27de835dd2
commit 9dde37eadb
1 changed files with 4 additions and 0 deletions

View File

@ -44,6 +44,10 @@
#include "SDL_loadso.h" #include "SDL_loadso.h"
#endif #endif
#ifndef INFTIM
#define INFTIM -1
#endif
static struct sio_hdl * (*SNDIO_sio_open)(const char *, unsigned int, int); static struct sio_hdl * (*SNDIO_sio_open)(const char *, unsigned int, int);
static void (*SNDIO_sio_close)(struct sio_hdl *); static void (*SNDIO_sio_close)(struct sio_hdl *);
static int (*SNDIO_sio_setpar)(struct sio_hdl *, struct sio_par *); static int (*SNDIO_sio_setpar)(struct sio_hdl *, struct sio_par *);