Browse Source

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>
tags/n1.0
Derek Buitenhuis Michael Niedermayer 13 years ago
parent
commit
af2a17c09a
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libavformat/cache.c

+ 3
- 1
libavformat/cache.c View File

@@ -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