-/* $Id: yaz-proxy.cpp,v 1.18 2005-01-18 10:49:45 adam Exp $
+/* $Id: yaz-proxy.cpp,v 1.19 2005-02-07 13:29:38 adam Exp $
Copyright (c) 1998-2005, Index Data.
This file is part of the yaz-proxy.
02111-1307, USA.
*/
+#ifdef WIN32
+#define HAVE_SYS_STAT_H 1
+#define HAVE_SYS_TYPES_H 1
+#endif
+
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
int Yaz_Proxy::file_access(Z_HTTP_Request *hreq)
{
+ struct stat sbuf;
yaz_log(YLOG_LOG, "file_access");
if (strcmp(hreq->method, "GET"))
return 0;
- struct stat sbuf;
if (hreq->path[0] != '/')
{
yaz_log(YLOG_WARN, "Bad path: %s", hreq->path);