summaryrefslogtreecommitdiff
path: root/libavformat/file.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-27 13:12:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-27 13:24:00 +0100
commit257196209fe7d27ad22e18bf5757ffcad47dce6b (patch)
treed9a825940512879d5cb54ff4e9b7248e09c5121d /libavformat/file.c
parent51d6879939bf4777227d77db59c659c66d3d967d (diff)
file: fix 10l error in access() check
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/file.c')
-rw-r--r--libavformat/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/file.c b/libavformat/file.c
index 840d3684c7..e09a64b37c 100644
--- a/libavformat/file.c
+++ b/libavformat/file.c
@@ -85,7 +85,7 @@ static int file_get_handle(URLContext *h)
static int file_check(URLContext *h, int mask)
{
-#if defined(HAVE_ACCESS) && defined(R_OK)
+#if HAVE_ACCESS && defined(R_OK)
int ret = 0;
if (access(h->filename, F_OK) < 0)
return AVERROR(errno);