mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 05:59:45 -05:00
make browse_path work on win32 -- implement d_type in readdir_r emulation.
This commit is contained in:
@@ -8,7 +8,9 @@
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include <dirent.h>
|
||||
#ifndef WIN32
|
||||
#include <dirent.h> /* c'mon, config for this */
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
#include <stdio.h>
|
||||
@@ -16,7 +18,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
# include <unistd.h>
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
@@ -319,7 +323,6 @@ void xml_browse_path(WS_CONNINFO *pwsc) {
|
||||
readable = !access(resolved_path,R_OK);
|
||||
writable = !access(resolved_path,W_OK);
|
||||
|
||||
|
||||
xml_push(pxml,"directory");
|
||||
xml_output(pxml,"name",pde->d_name);
|
||||
xml_output(pxml,"full_path",resolved_path);
|
||||
|
||||
Reference in New Issue
Block a user