*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#ifdef WIN32
#include <winsock.h>
#endif
#include <sys/types.h>
-#if HAVE_SYS_UIO_H
-#include <sys/uio.h>
-#endif
#include <yaz/snprintf.h>
#if HAVE_UNISTD_H
#include <assert.h>
#include <string.h>
-#if HAVE_CONFIG_H
-#include <config.h>
-#endif
-
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif