projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug #2352: yaz-marcdump crashes for certain record.
[yaz-moved-to-github.git]
/
src
/
tcpdchk.c
diff --git
a/src/tcpdchk.c
b/src/tcpdchk.c
index
d19f8f6
..
98bdc2b
100644
(file)
--- a/
src/tcpdchk.c
+++ b/
src/tcpdchk.c
@@
-10,24
+10,22
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#ifdef WIN32
+#include <winsock.h>
+#endif
+
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef WIN32
-#include <winsock.h>
-#else
+#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/in.h>
-#include <netdb.h>
-#include <arpa/inet.h>
-#include <netinet/tcp.h>
#endif
#endif
-#if HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
+#if HAVE_NETDB_H
+#include <netdb.h>
#endif
#endif
-#include <yaz/yconfig.h>
#include <yaz/comstack.h>
#include <yaz/statserv.h>
#include <yaz/log.h>
#include <yaz/comstack.h>
#include <yaz/statserv.h>
#include <yaz/log.h>