file: Only include unistd.h if it exists
authorRonald S. Bultje <rsbultje@gmail.com>
Sun, 24 Jun 2012 21:42:27 +0000 (00:42 +0300)
committerMartin Storsjö <martin@martin.st>
Fri, 29 Jun 2012 12:53:41 +0000 (15:53 +0300)
commit3b1ab197be185b61247ef2472f15eeac3e765252
tree532e09dfabfb9d9510d2d01b3fab2ede77b4a42a
parentf985113075b0c571b1b1b166fe28f87f0f291be5
file: Only include unistd.h if it exists

It is included for the open/read/write/close functions. On
MSVC, where this header does not exist, the same functions
are provided by io.h, which is already included.

On windows, these functions are provided by io.h. Make sure
io.h is included if it exists, regardless of the setmode
function.

Signed-off-by: Martin Storsjö <martin@martin.st>
configure
libavformat/file.c