From 36f35206dcf0c2979d4e5572739cec46eb21b6e2 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Tue, 9 May 2006 05:51:08 +0000 Subject: [PATCH] make browse_path work on win32 -- implement d_type in readdir_r emulation. --- src/xml-rpc.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/xml-rpc.c b/src/xml-rpc.c index 6eda2828..7423fbf9 100644 --- a/src/xml-rpc.c +++ b/src/xml-rpc.c @@ -8,7 +8,9 @@ # include "config.h" #endif -#include +#ifndef WIN32 +#include /* c'mon, config for this */ +#endif #include #include #include @@ -16,7 +18,9 @@ #include #include #include -#include +#ifdef HAVE_UNISTD_H +# include +#endif #include @@ -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);