[PATCH] Compile fix for asm-i386/socket.h

From: Richard Gooch (rgooch@ras.ucalgary.ca)
Date: Mon Jul 03 2000 - 15:11:29 EST


  Hi, Linus. Please apply the follow patch: it fixes the "fixup"
someone recently added to include/asm-i386/socket.h
Patch is against 2.4.0-test3-pre2.

                                Regards,

                                        Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
===============================================================================
diff -urN linux-2.4.0-test3-pre2/include/asm-i386/socket.h linux/include/asm-i386/socket.h
--- linux-2.4.0-test3-pre2/include/asm-i386/socket.h Mon Jun 19 14:42:42 2000
+++ linux/include/asm-i386/socket.h Mon Jul 3 14:03:59 2000
@@ -41,8 +41,8 @@
 
 #define SO_PEERNAME 28
 
-/* Nast libc5 fixup - bletch */
-#if defined(__KERNEL__)
+/* Nasty libc5 fixup - bletch */
+#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
 /* Socket types. */
 #define SOCK_STREAM 1 /* stream (connection) socket */
 #define SOCK_DGRAM 2 /* datagram (conn.less) socket */

-
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/



This archive was generated by hypermail 2b29 : Fri Jul 07 2000 - 21:00:14 EST