*/
-#include <config.h>
+#include "mem_config.h"
#include "util/instance.hpp"
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
-#include <unistd.h>
+# include <unistd.h>
+#endif
+
+#ifndef INVALID_SOCKET
+# define INVALID_SOCKET -1
+#endif
+
+#ifndef SOCKET_ERROR
+# define SOCKET_ERROR -1
+#endif
+
+#ifndef get_socket_errno
+# define get_socket_errno() errno
+#endif
+
+#ifndef closesocket
+# define closesocket(a) close(a)
#endif
case READING:
if (operation->has_response())
{
- size_t total_read;
ssize_t read_length;
do
}
operation->push(buffer, static_cast<size_t>(read_length));
- total_read+= static_cast<size_t>(read_length);
} while (more_to_read());
} // end has_response