summaryrefslogtreecommitdiff
path: root/sysdeps/stub/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/stub/connect.c')
-rw-r--r--sysdeps/stub/connect.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/stub/connect.c b/sysdeps/stub/connect.c
index 49300f3a09..0d642cbcea 100644
--- a/sysdeps/stub/connect.c
+++ b/sysdeps/stub/connect.c
@@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
-#include <ansidecl.h>
#include <errno.h>
#include <sys/socket.h>
@@ -25,10 +24,12 @@ Cambridge, MA 02139, USA. */
and the only address from which to accept transmissions.
Return 0 on success, -1 for errors. */
int
-DEFUN(connect, (fd, addr, len),
- int fd AND const struct sockaddr *addr AND size_t len)
+connect (fd, addr, len)
+ int fd;
+ const struct sockaddr *addr;
+ size_t len;
{
- errno = ENOSYS;
+ __set_errno (ENOSYS);
return -1;
}