Print this page
remove support for non-ANSI compilation

*** 17,26 **** --- 17,28 ---- * information: Portions Copyright [yyyy] [name of copyright owner] * * CDDL HEADER END */ /* + * Copyright 2014 Garrett D'Amore <garrett@damore.org> + * * Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. */ /* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ /* All Rights Reserved */
*** 520,530 **** #define listen __xnet_listen #endif /* __PRAGMA_REDEFINE_EXTNAME */ #endif /* (_XPG4_2) && !defined(_XPG5) */ #if !defined(_KERNEL) || defined(_BOOT) - #ifdef __STDC__ extern int accept(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t); extern int accept4(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t, int); extern int bind(int, const struct sockaddr *, socklen_t); extern int connect(int, const struct sockaddr *, socklen_t); extern int getpeername(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t); --- 522,531 ----
*** 545,575 **** extern int socket(int, int, int); #if !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) extern int sockatmark(int); #endif /* !defined(_XPG4_2) || defined(_XPG6) || defined(__EXTENSIONS__) */ - #else /* __STDC__ */ - extern int accept(); - extern int accept4(); - extern int bind(); - extern int connect(); - extern int getpeername(); - extern int getsockname(); - extern int getsockopt(); - extern int listen(); - extern int recv(); - extern int recvfrom(); - extern int send(); - extern int sendto(); - extern int setsockopt(); - extern int sockatmark(); - extern int socket(); - extern int recvmsg(); - extern int sendmsg(); - extern int shutdown(); - extern int socketpair(); - #endif /* __STDC__ */ #endif /* !defined(_KERNEL) || defined(_BOOT) */ #ifdef __cplusplus } #endif --- 546,555 ----