libavutil: use avpriv_open()
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 6 Aug 2013 18:19:25 +0000 (21:19 +0300)
committerAnton Khirnov <anton@khirnov.net>
Wed, 7 Aug 2013 19:12:28 +0000 (21:12 +0200)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavutil/random_seed.c

index ec9caa7..4680081 100644 (file)
 #include <fcntl.h>
 #include <math.h>
 #include <time.h>
+#include "internal.h"
 #include "timer.h"
 #include "random_seed.h"
 
 static int read_random(uint32_t *dst, const char *file)
 {
 #if HAVE_UNISTD_H
-    int fd = open(file, O_RDONLY);
+    int fd = avpriv_open(file, O_RDONLY);
     int err = -1;
 
     if (fd == -1)