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

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

parent 269a815d
...@@ -50,6 +50,12 @@ ...@@ -50,6 +50,12 @@
#ifdef HAVE_DIRENT_H #ifdef HAVE_DIRENT_H
# include <dirent.h> # include <dirent.h>
#endif #endif
#ifdef __sun__
static inline int dirfd (DIR *dir)
{
return dir->dd_fd;
}
#endif
#include <vlc_charset.h> #include <vlc_charset.h>
#include <vlc_url.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