* Copyright (c) 1995-2003, Index Data
* See the file LICENSE for details.
*
- * $Id: seshigh.c,v 1.137 2003-02-17 21:23:31 adam Exp $
+ * $Id: seshigh.c,v 1.138 2003-02-17 22:34:39 adam Exp $
*/
/*
#include <io.h>
#define S_ISREG(x) (x & _S_IFREG)
#include <process.h>
+#include <sys/stat.h>
#else
#include <sys/stat.h>
#include <unistd.h>
#endif
if (!strcmp(hreq->path, "/"))
{
+#ifdef DOCDIR
struct stat sbuf;
+#endif
const char *doclink = "";
p = z_get_HTTP_Response(o, 200);
hres = p->u.HTTP_Response;
# makefile.mak - makefile for MS NMAKE
-# $Id: makefile,v 1.52 2002-12-16 14:06:34 adam Exp $
+# $Id: makefile,v 1.53 2003-02-17 22:34:39 adam Exp $
#
# Programmed by
# HL: Heikki Levanto, Index Data
ICONV_DIR = c:\libiconv-1.7.0.1
# TCL
-TCL="C:\Tcl\bin\tclsh83.exe"
-#TCL="C:\Program Files\Tcl\bin\tclsh83.exe"
+#TCL="C:\Tcl\bin\tclsh83.exe"
+TCL="C:\Program Files\Tcl\bin\tclsh83.exe"
HAVE_TCL=1
+# libxml2
+LIBXML2_DIR=c:\libxml2-2.5.3.win32
+
+LIBXML2_LIB=$(LIBXML2_DIR)\lib\libxml2.lib
+LIBXML2_DEF=/D HAVE_XML2=1 /I"$(LIBXML2_DIR)\include"
+
default: all
all: dirs generate dll client ztest zoomsh
COMMON_C_OPTIONS= \
/nologo /W3 /GX /FD /c \
$(ICONV_DEF) \
+ $(LIBXML2_DEF) \
/D "_WINDOWS" \
/D "WIN32" \
/D "HAVE_WCHAR_H=1" \
LINK_LIBS= kernel32.lib user32.lib gdi32.lib \
advapi32.lib uuid.lib \
wsock32.lib advapi32.lib \
- $(ICONV_LIB)
+ $(ICONV_LIB) $(LIBXML2_LIB)
COMMON_LNK_OPTIONS= /nologo \
/subsystem:windows \
$(OBJDIR)\sortspec.obj \
$(OBJDIR)\z3950oid.obj \
$(OBJDIR)\charneg.obj \
- $(OBJDIR)\grs1disp.obj
+ $(OBJDIR)\grs1disp.obj \
+ $(OBJDIR)\zgdu.obj \
+ $(OBJDIR)\soap.obj \
+ $(OBJDIR)\srw.obj
Z3950_OBJS= \
$(OBJDIR)\z-date.obj\
###########################################################
#
# $Log: makefile,v $
-# Revision 1.52 2002-12-16 14:06:34 adam
+# Revision 1.53 2003-02-17 22:34:39 adam
+# WIN32 updates
+#
+# Revision 1.52 2002/12/16 14:06:34 adam
# WIN32 updates for marc8.c
#
# Revision 1.51 2002/12/05 12:16:39 adam
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: zgdu.c,v 1.4 2003-02-17 21:23:32 adam Exp $
+ * $Id: zgdu.c,v 1.5 2003-02-17 22:34:40 adam Exp $
*/
#include <yaz/proto.h>
-#define HTTP_DEBUG 0
+#define HTTP_DEBUG 1
static int decode_headers_content(ODR o, int off, Z_HTTP_Header **headers,
char **content_buf, int *content_len)