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
Add various #if HAVE_- for headers
[yaz-moved-to-github.git]
/
src
/
spipe.c
diff --git
a/src/spipe.c
b/src/spipe.c
index
f42c8f1
..
52c922a
100644
(file)
--- a/
src/spipe.c
+++ b/
src/spipe.c
@@
-49,10
+49,18
@@
#include <sys/socket.h>
#endif
#include <sys/socket.h>
#endif
+#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/in.h>
+#endif
+#if HAVE_NETDB_H
#include <netdb.h>
#include <netdb.h>
+#endif
+#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#include <arpa/inet.h>
+#endif
+#if HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#include <netinet/tcp.h>
+#endif
struct yaz_spipe {
int m_fd[2];
struct yaz_spipe {
int m_fd[2];