lkml.org 
[lkml]   [1999]   [Jul]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Re: Linux 2.2.10ac11
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.




--- 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 */
\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.043 / U:0.072 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site