diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-12-10 18:10:13 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2000-12-10 18:10:13 +0000 |
commit | c5209908b2f4950e8c48cb43cbf126944a0f654e (patch) | |
tree | 5d369b70c307c38b4776d8ee1a5d78ff3c6588f9 /lib/defines.h | |
parent | 8dbb1d8ea7945ba382c2a37a481dd0594f477134 (diff) | |
download | gnutls-c5209908b2f4950e8c48cb43cbf126944a0f654e.tar.gz |
used MSG_PEEK flag in recv in order to used gnutls_recv() with
select(). This change will order select to treat the socket as
read even if we have read and localy buffered all data - but the
user hasn't call gnutls_recv() to get that data.
Diffstat (limited to 'lib/defines.h')
-rw-r--r-- | lib/defines.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/defines.h b/lib/defines.h index 31f0fd8b26..e4d4fea3f1 100644 --- a/lib/defines.h +++ b/lib/defines.h @@ -30,6 +30,9 @@ # include <unistd.h> #endif +#ifdef HAVE_SYS_SOCKET_H +# include <sys/socket.h> +#endif #if SIZEOF_UNSIGNED_LONG_INT == 8 typedef unsigned long int uint64; |