diff options
Diffstat (limited to 'include/sys/socket.h')
-rw-r--r-- | include/sys/socket.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h index 4ae7108509..c09eac488f 100644 --- a/include/sys/socket.h +++ b/include/sys/socket.h @@ -27,6 +27,8 @@ extern ssize_t __send (int __fd, __const void *__buf, size_t __n, int __flags); and the only address from which to accept transmissions. Return 0 on success, -1 for errors. */ extern int __connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); +extern int __connect_internal (int __fd, __CONST_SOCKADDR_ARG __addr, + socklen_t __len) attribute_hidden; /* Return the length of a `sockaddr' structure. */ #ifdef _HAVE_SA_LEN @@ -36,4 +38,9 @@ extern int __connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len); extern int __libc_sa_len (sa_family_t __af) __THROW; #endif + +#ifndef NOT_IN_libc +# define __connect(fd, addr, len) INTUSE(__connect) (fd, addr, len) +#endif + #endif |