1 /* $NetBSD: compat_socket.c,v 1.1 2006/06/26 21:23:56 mrg Exp $ */
4 #if defined(LIBC_SCCS) && !defined(lint)
5 __RCSID("$NetBSD: compat_socket.c,v 1.1 2006/06/26 21:23:56 mrg Exp $");
6 #endif /* LIBC_SCCS and not lint */
8 #define __LIBC12_SOURCE__
11 #include <sys/types.h>
12 #include <sys/socket.h>
13 #include <compat/sys/socket.h>
15 __warn_references(socket
,
16 "warning: reference to compatibility socket(); include <sys/socket.h> for correct reference")
19 socket(int domain
, int type
, int protocol
)
23 res
= __socket30(domain
, type
, protocol
);
24 if (errno
== EAFNOSUPPORT
)
25 errno
= EPROTONOSUPPORT
;