mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +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;
|
||||
}
|
||||
|
||||
#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
|
||||
prompt_on (Context * ctx)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue