andygrundman / libmediascan

C library for scanning audio/video/image file metadata
GNU Lesser General Public License v3.0
8 stars 5 forks source link

Compiling "mediascan_unix.c" on Solaris 11 Express #1

Closed ghost closed 5 years ago

ghost commented 12 years ago

Compiling "mediascan_unix.c" resulted in a problem concerned with the d_type/DT_DIR issue on some platforms (line 114 in "mediascan_unix.c")

The problem could be solved by adding the following line to the file:

in case of (line 114): if (dp->d_type == DT_DIR) { I put: stat(dp->d_name, &t); if ((t.st_mode & S_IFMT) == S_IFDIR) {

I also had to add "struct stat t;" to function "recurse_dir"

Maybe this helps to get libmediascan running on Solaris/Openindiana

fsbruva commented 5 years ago

Closed via #6. Please test to make sure it works for your platform.