svn commit: trunk/uClibc/libc/sysdeps/linux: common/bits mips/bits

aldot at uclibc.org aldot at uclibc.org
Mon Oct 6 08:54:40 UTC 2008


Author: aldot
Date: 2008-10-06 01:54:40 -0700 (Mon, 06 Oct 2008)
New Revision: 23585

Log:
- tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger)


Modified:
   trunk/uClibc/libc/sysdeps/linux/common/bits/socket.h
   trunk/uClibc/libc/sysdeps/linux/mips/bits/socket.h


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/bits/socket.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/bits/socket.h	2008-10-05 18:39:31 UTC (rev 23584)
+++ trunk/uClibc/libc/sysdeps/linux/common/bits/socket.h	2008-10-06 08:54:40 UTC (rev 23585)
@@ -314,7 +314,13 @@
 };
 
 /* Get socket manipulation related informations from kernel headers.  */
+#ifndef __GLIBC__
+#define __GLIBC__ 2
 #include <asm/socket.h>
+#undef __GLIBC__
+#else
+#include <asm/socket.h>
+#endif
 
 
 /* Structure used to manipulate the SO_LINGER option.  */

Modified: trunk/uClibc/libc/sysdeps/linux/mips/bits/socket.h
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/bits/socket.h	2008-10-05 18:39:31 UTC (rev 23584)
+++ trunk/uClibc/libc/sysdeps/linux/mips/bits/socket.h	2008-10-06 08:54:40 UTC (rev 23585)
@@ -315,7 +315,13 @@
 };
 
 /* Get socket manipulation related informations from kernel headers.  */
+#ifndef __GLIBC__
+#define __GLIBC__ 2
 #include <asm/socket.h>
+#undef __GLIBC__
+#else
+#include <asm/socket.h>
+#endif
 
 
 /* Structure used to manipulate the SO_LINGER option.  */




More information about the uClibc-cvs mailing list