alpha: Don't export SOCK_NONBLOCK to user space.

Started by Michael Cree on Jun 16, 2012

Subsystems (2)

Maintainers (4)

DORMANTno replies

open the first message on its own page

Message details and related content
Currently we export SOCK_NONBLOCK to user space but that conflicts
with the definition from glibc leading to compilation errors in user
programs (e.g. see Debian bug #658460).  The generic socket.h
restricts the definition of SOCK_NONBLOCK to the kernel, as does
the MIPS specific socket.h, so let's do the same on Alpha.

Signed-off-by: Michael Cree <redacted>
---
 arch/alpha/include/asm/socket.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/alpha/include/asm/socket.h b/arch/alpha/include/asm/socket.h
index dcb221a..7d2f75b 100644
--- a/arch/alpha/include/asm/socket.h
+++ b/arch/alpha/include/asm/socket.h
@@ -76,9 +76,11 @@
 /* Instruct lower device to use last 4-bytes of skb data as FCS */
 #define SO_NOFCS		43
 
+#ifdef __KERNEL__
 /* O_NONBLOCK clashes with the bits used for socket types.  Therefore we
  * have to define SOCK_NONBLOCK to a different value here.
  */
 #define SOCK_NONBLOCK	0x40000000
+#endif /* __KERNEL__ */
 
 #endif /* _ASM_SOCKET_H */
-- 
1.7.4.3
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help