AC_MSG_ERROR([YAZ development libraries missing])
fi
YAZ_DOC
+AC_CHECK_HEADERS(unistd.h sys/stat.h sys/time.h sys/types.h)
AC_ARG_ENABLE(zoom,[ --disable-zoom disable ZOOM (for old C++ compilers)],[enable_zoom=$enableval],[enable_zoom=yes])
AM_CONDITIONAL(ZOOM, test $enable_zoom = "yes")
* Copyright (c) 1998-2004, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-pdu-assoc-thread.cpp,v 1.8 2004-12-13 20:50:54 adam Exp $
+ * $Id: yaz-pdu-assoc-thread.cpp,v 1.9 2005-01-14 10:13:50 adam Exp $
*/
#ifdef WIN32
#if USE_THREADS
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifdef WIN32
#include <process.h>
#else
#include <pthread.h>
-#include <unistd.h>
#endif
+
#include <errno.h>
#include <yaz/log.h>
#include <yaz/tcpip.h>
/*
- * Copyright (c) 1998-2004, Index Data.
+ * Copyright (c) 1998-2005, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-socket-manager.cpp,v 1.30 2004-12-13 20:50:54 adam Exp $
+ * $Id: yaz-socket-manager.cpp,v 1.31 2005-01-14 10:13:50 adam Exp $
*/
-#include <assert.h>
#ifdef WIN32
#include <winsock.h>
-#else
+#endif
+
+#if HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
+#if HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#if HAVE_UNISTD_H
#include <unistd.h>
#endif
+
#include <errno.h>
#include <string.h>
+#include <assert.h>
#include <yaz/log.h>
#include <yaz++/socket-manager.h>