Commit fc2659d7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Work around missing POSIX.2008 dirfd() on Solaris (fixes: #3029)

(cherry picked from commit c4382505)
parent 299c2cb8
......@@ -50,6 +50,12 @@
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#endif
#ifdef __sun__
static inline int dirfd (DIR *dir)
{
return dir->dd_fd;
}
#endif
#include <vlc_charset.h>
#include <vlc_url.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment