From a5dd172779d70801c2856aa4a4d37ca027084313 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Fri, 25 Feb 2000 21:52:09 +0000 Subject: [PATCH] Bits for libc. --- include/asm-mips/socket.h | 12 ++++++++---- include/asm-mips64/socket.h | 5 ++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/include/asm-mips/socket.h b/include/asm-mips/socket.h index 7217351277e..d7192c809fb 100644 --- a/include/asm-mips/socket.h +++ b/include/asm-mips/socket.h @@ -1,8 +1,8 @@ /* - * $Id: socket.h,v 1.4 1997/12/06 23:55:49 ralf Exp $ + * $Id: socket.h,v 1.5 1998/03/17 22:16:17 ralf Exp $ */ -#ifndef __ASM_MIPS_SOCKET_H -#define __ASM_MIPS_SOCKET_H +#ifndef _ASM_SOCKET_H +#define _ASM_SOCKET_H #include @@ -56,6 +56,8 @@ To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ #define SO_ATTACH_FILTER 26 #define SO_DETACH_FILTER 27 +#ifdef __KERNEL__ + /* Types of sockets. */ #define SOCK_DGRAM 1 /* Connectionless, unreliable datagrams of fixed maximum length. */ @@ -69,4 +71,6 @@ To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ the dev level. For writing rarp and other similar things on the user level. */ -#endif /* __ASM_MIPS_SOCKET_H */ +#endif /* __KERNEL__ */ + +#endif /* _ASM_SOCKET_H */ diff --git a/include/asm-mips64/socket.h b/include/asm-mips64/socket.h index e4a4d1aad98..5c8a18041a2 100644 --- a/include/asm-mips64/socket.h +++ b/include/asm-mips64/socket.h @@ -1,4 +1,4 @@ -/* $Id$ +/* $Id: socket.h,v 1.1 1999/08/18 23:37:52 ralf Exp $ * * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive @@ -61,6 +61,8 @@ To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ #define SO_ATTACH_FILTER 26 #define SO_DETACH_FILTER 27 +#ifdef __KERNEL__ + /* Types of sockets. */ #define SOCK_DGRAM 1 /* Connectionless, unreliable datagrams of fixed maximum length. */ @@ -73,5 +75,6 @@ To add: #define SO_REUSEPORT 0x0200 /* Allow local address and port reuse. */ #define SOCK_PACKET 10 /* Linux specific way of getting packets at the dev level. For writing rarp and other similar things on the user level. */ +#endif /* __KERNEL__ */ #endif /* _ASM_SOCKET_H */ -- 2.11.4.GIT