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
rpn2cql diagnostics: provide use attribute addinfo YAZ-853
[yaz-moved-to-github.git]
/
src
/
tcpip.c
diff --git
a/src/tcpip.c
b/src/tcpip.c
index
bea92df
..
a8f03ba
100644
(file)
--- a/
src/tcpip.c
+++ b/
src/tcpip.c
@@
-1019,7
+1019,9
@@
COMSTACK tcpip_accept(COMSTACK h)
TRC(fprintf(stderr, "tcpip_accept h=%p pid=%d\n", h, getpid()));
if (h->state == CS_ST_INCON)
{
TRC(fprintf(stderr, "tcpip_accept h=%p pid=%d\n", h, getpid()));
if (h->state == CS_ST_INCON)
{
+#if HAVE_GNUTLS_H
tcpip_state *st = (tcpip_state *)h->cprivate;
tcpip_state *st = (tcpip_state *)h->cprivate;
+#endif
tcpip_state *state = tcpip_state_create();
cnew = (COMSTACK) xmalloc(sizeof(*cnew));
tcpip_state *state = tcpip_state_create();
cnew = (COMSTACK) xmalloc(sizeof(*cnew));
@@
-1228,10
+1230,10
@@
int tcpip_get(COMSTACK h, char **buf, int *bufsize)
h->cerrno = CSYSERR;
return -1;
}
h->cerrno = CSYSERR;
return -1;
}
+#endif
}
else if (!res)
return hasread;
}
else if (!res)
return hasread;
-#endif
}
hasread += res;
if (hasread > h->max_recv_bytes)
}
hasread += res;
if (hasread > h->max_recv_bytes)