cache: Only include unistd.h if it exists

This follows suite from f3be359707.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/28/head
Derek Buitenhuis 12 years ago committed by Michael Niedermayer
parent f3be359707
commit af2a17c09a
  1. 4
      libavformat/cache.c

@ -33,10 +33,12 @@
#include "libavutil/file.h"
#include "avformat.h"
#include <fcntl.h>
#if HAVE_SETMODE
#if HAVE_IO_H
#include <io.h>
#endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/stat.h>
#include <stdlib.h>
#include "os_support.h"

Loading…
Cancel
Save