mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
test-onvif-client: STDIN_FILENO is not portable
If not defined, define it to _fileno(stdin) on Windows, 0 everywhere else
This commit is contained in:
parent
df1f9f38ce
commit
859e59b944
1 changed files with 8 additions and 0 deletions
|
@ -539,6 +539,14 @@ io_callback (GIOChannel * io, GIOCondition condition, Context * ctx)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef STDIN_FILENO
|
||||||
|
#ifdef G_OS_WIN32
|
||||||
|
#define STDIN_FILENO _fileno(stdin)
|
||||||
|
#else /* !G_OS_WIN32 */
|
||||||
|
#define STDIN_FILENO 0
|
||||||
|
#endif /* G_OS_WIN32 */
|
||||||
|
#endif /* STDIN_FILENO */
|
||||||
|
|
||||||
static void
|
static void
|
||||||
prompt_on (Context * ctx)
|
prompt_on (Context * ctx)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue