]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/random_seed.c
libavutil: Don't use fcntl if the function does not exist
[ffmpeg] / libavutil / random_seed.c
index ec9caa74b709ce37ce14b7af8f8984cda3e2ec03..4680081b106c1124a3669f98338a935b6c36ba99 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)