[PATCH] Re: Linux 2.2.10ac11

Kris Karas (ktk@ktk.bidmc.harvard.edu)
Mon, 19 Jul 1999 13:08:59 -0400


This is a multi-part message in MIME format.
--------------61AAF3CE0329606B9AC9523C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Alan Cox wrote:

> > Hello Alan , something in the < ac10 , breaks the sys/socket.h
> > include structure . Making the below under 2.2.10-vanilla
> > compiles like a charm (minus some silly warnings) . I have
>
> The include file changes break libc5 it seems. Right now I've not figured
> the right way to fix that without upsetting glibc

How about the attached? It's against a patched 2.2.10-acX.

--------------61AAF3CE0329606B9AC9523C
Content-Type: text/plain; charset=us-ascii;
name="sockpatch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="sockpatch"

--- include/linux/socket.h.orig Mon Jul 19 12:53:40 1999
+++ include/linux/socket.h Mon Jul 19 13:03:06 1999
@@ -261,4 +261,20 @@
extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
#endif
#endif /* not kernel and not glibc */
+
+#if !defined(__KERNEL__) && (!defined(__GLIBC__) || (__GLIBC__ < 2))
+
+/* Socket types for libc5 compatibility -- KTK */
+
+#define SOCK_STREAM 1 /* stream (connection) socket */
+#define SOCK_DGRAM 2 /* datagram (conn.less) socket */
+#define SOCK_RAW 3 /* raw socket */
+#define SOCK_RDM 4 /* reliably-delivered message */
+#define SOCK_SEQPACKET 5 /* sequential packet socket */
+#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 /* libc<=5 && !kernel */
#endif /* _LINUX_SOCKET_H */

--------------61AAF3CE0329606B9AC9523C--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/