summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorRaymond Hilseth <rhi@vizrt.com>2016-01-06 09:57:41 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-28 22:26:39 +0100
commit20e4863ab14a6bcf00d469322075ff5e5c61e483 (patch)
tree83e21a336b972ef7bbb969f301a1be517df6dcbd /libavformat/file.c
parent22dbc1caaf13e4bb17c9e0164a5b1ccaf490e428 (diff)
avformat/file: enable file_move() without unistd.h
it only requires the rename function from os_support.h. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 595ba3607e..4812ad1b17 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -176,7 +176,6 @@ static int file_delete(URLContext *h)
static int file_move(URLContext *h_src, URLContext *h_dst)
{
-#if HAVE_UNISTD_H
const char *filename_src = h_src->filename;
const char *filename_dst = h_dst->filename;
av_strstart(filename_src, "file:", &filename_src);
@@ -186,9 +185,6 @@ static int file_move(URLContext *h_src, URLContext *h_dst)
return AVERROR(errno);
return 0;
-#else
- return AVERROR(ENOSYS);
-#endif /* HAVE_UNISTD_H */
}
#if CONFIG_FILE_PROTOCOL