Skip to content

Commit 4f7da69

Browse files
Michael Creegregkh
authored andcommitted
alpha: Don't export SOCK_NONBLOCK to user space.
commit a2fa3cc upstream. 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 <[email protected]> Acked-by: Matt Turner <[email protected]> Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 3db5984 commit 4f7da69

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/alpha/include/asm/socket.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@
6969

7070
#define SO_RXQ_OVFL 40
7171

72+
#ifdef __KERNEL__
7273
/* O_NONBLOCK clashes with the bits used for socket types. Therefore we
7374
* have to define SOCK_NONBLOCK to a different value here.
7475
*/
7576
#define SOCK_NONBLOCK 0x40000000
77+
#endif /* __KERNEL__ */
7678

7779
#endif /* _ASM_SOCKET_H */

0 commit comments

Comments
 (0)