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)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 7 Sep 2012 16:41:23 +0000 (18:41 +0200)
commitf3be3597079be7cd7adbb8392c32e408cadd3da2
treebabf3ecce13546fb87b30c86467eaff3505b84d4
parenta4d71eb5c3a6265afee1c25fea549dd071c1f4a6
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>
Conflicts:

configure

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
configure
libavformat/file.c