[vlc-commits] posix: openat() is always present

Rémi Denis-Courmont git at videolan.org
Sat Sep 21 11:49:09 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 21 12:12:54 2019 +0300| [50e9468694dd9bb0e3e09bf4b142a07940ea5eca] | committer: Rémi Denis-Courmont

posix: openat() is always present

Remove now dead conditional code.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=50e9468694dd9bb0e3e09bf4b142a07940ea5eca
---

 src/posix/filesystem.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/posix/filesystem.c b/src/posix/filesystem.c
index e63a921d66..3f94b76f92 100644
--- a/src/posix/filesystem.c
+++ b/src/posix/filesystem.c
@@ -75,15 +75,7 @@ int vlc_openat (int dir, const char *filename, int flags, ...)
         mode = va_arg (ap, unsigned int);
     va_end (ap);
 
-#ifdef HAVE_OPENAT
     return openat(dir, filename, flags | O_CLOEXEC, mode);
-#else
-    VLC_UNUSED (dir);
-    VLC_UNUSED (filename);
-    VLC_UNUSED (mode);
-    errno = ENOSYS;
-    return -1;
-#endif
 }
 
 #ifdef HAVE_MKOSTEMP



More information about the vlc-commits mailing list