OSDN Git Service

- tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger)
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 6 Oct 2008 08:54:40 +0000 (08:54 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 6 Oct 2008 08:54:40 +0000 (08:54 -0000)
libc/sysdeps/linux/common/bits/socket.h
libc/sysdeps/linux/mips/bits/socket.h

index 2f3dc79..c352a17 100644 (file)
@@ -314,7 +314,13 @@ struct ucred
 };
 
 /* 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.  */
index c43a4cd..0860b4d 100644 (file)
@@ -315,7 +315,13 @@ struct ucred
 };
 
 /* 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.  */