socklen_t compatibility cruft.

This commit is contained in:
leitner
2001-11-24 20:18:37 +00:00
parent d6ae7e2265
commit 24ef5b3bfc
10 changed files with 20 additions and 14 deletions

View File

@@ -6,11 +6,7 @@
int socket_connected(int s) {
struct sockaddr si;
#ifdef HAVE_SOCKLEN_T
socklen_t sl=sizeof si;
#else
int sl=sizeof si;
#endif
if (getpeername(s,&si,&sl))
return 0;
return 1;