blob: 7736d7050fca3020431eb943bd2bf2ada86dbbdc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Description: with new binutils (2.23) we have __xnet_* in the kernel
Index: uts/usr/src/uts/common/sys/socket.h
===================================================================
--- uts.orig/usr/src/uts/common/sys/socket.h
+++ uts/usr/src/uts/common/sys/socket.h
@@ -481,7 +481,7 @@ struct cmsghdr {
#define CMSG_LEN(l) \
((unsigned int)_CMSG_DATA_ALIGN(sizeof (struct cmsghdr)) + (l))
-
+#if !defined(_KERNEL)
#ifdef __PRAGMA_REDEFINE_EXTNAME
#pragma redefine_extname bind __xnet_bind
#pragma redefine_extname connect __xnet_connect
@@ -511,6 +511,8 @@ struct cmsghdr {
#endif /* __PRAGMA_REDEFINE_EXTNAME */
#endif /* (_XPG4_2) && !defined(_XPG5) */
+#endif /* !defined(_KERNEL) */
+
#if !defined(_KERNEL) || defined(_BOOT)
extern int accept(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);
extern int accept4(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t, int);
|