summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-02-25 21:52:09 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-02-25 21:52:09 +0000
commita5dd172779d70801c2856aa4a4d37ca027084313 (patch)
tree2decbc9a3d7a16f0794bb40ad485643f4016477d
parent5d297a89a5d917d58a9459f7c074a00b0f74e635 (diff)
Bits for libc.
-rw-r--r--include/asm-mips/socket.h12
-rw-r--r--include/asm-mips64/socket.h5
2 files changed, 12 insertions, 5 deletions
diff --git a/include/asm-mips/socket.h b/include/asm-mips/socket.h
index 721735127..d7192c809 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 <asm/sockios.h>
@@ -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 e4a4d1aad..5c8a18041 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 */