patch-2.2.18 linux/include/asm-sparc64/socket.h

Next file: linux/include/asm-sparc64/spitfire.h
Previous file: linux/include/asm-sparc64/smplock.h
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-sparc64/socket.h linux/include/asm-sparc64/socket.h
@@ -1,4 +1,4 @@
-/* $Id: socket.h,v 1.5.2.1 1999/08/07 10:52:59 davem Exp $ */
+/* $Id: socket.h,v 1.5.2.2 2000/11/12 13:16:14 davem Exp $ */
 #ifndef _ASM_SOCKET_H
 #define _ASM_SOCKET_H
 
@@ -46,6 +46,7 @@
 #define SO_SECURITY_ENCRYPTION_NETWORK		0x5004
 
 /* Socket types. */
+#if defined(__KERNEL__)
 #define SOCK_STREAM	1		/* stream (connection) socket	*/
 #define SOCK_DGRAM	2		/* datagram (conn.less) socket	*/
 #define SOCK_RAW	3		/* raw socket			*/
@@ -56,5 +57,6 @@
 					/* level.  For writing rarp and	*/
 					/* other similar things on the	*/
 					/* user level.			*/
+#endif
 
 #endif /* _ASM_SOCKET_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)