[MPlayer-dev-eng] question about posix select
Mate Miklos
mtmkls at freemail.hu
Thu Jan 18 12:13:22 CET 2007
Hi,
can anyone tell me what is the reason for the HAVE_NO_POSIX_SELECT macro
controlled by configure? Which OS's don't have posix select?
This macro is only used in input/input.c and libmpcodecs/vf_bmovl.c, but the
select() call is used in various other places as well, eg. stream/tcp.c,
stream/stream_ftp.c.
What's more interesting, input.c:mp_input_read_key_code() calls getch2() which
uses select() again, but without the guarding macro.
The getch2.c file has an alternative, getch2-win.c, so I guess windoze doesn't
have select(), but then how does the above two streams compile on windoze?
Or, if a Unix-like OS doesn't have select() (which is highly unlikely...),
then the following audio out drivers shouldn't compile because of select()
usage: ao_oss, ao_sun, ao_esd
(and libavformat also uses select() in rtpproto.c, tcp.c, audio.c and
rtsp.c ...)
Personally I use Linux, so I'm not affected by this, I'm just curious...
Miklos
More information about the MPlayer-dev-eng
mailing list