Browse Source

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

Bernhard Reutner-Fischer 16 years ago
parent
commit
74af396f2b
2 changed files with 12 additions and 0 deletions
  1. 6 0
      libc/sysdeps/linux/common/bits/socket.h
  2. 6 0
      libc/sysdeps/linux/mips/bits/socket.h

+ 6 - 0
libc/sysdeps/linux/common/bits/socket.h

@@ -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.  */

+ 6 - 0
libc/sysdeps/linux/mips/bits/socket.h

@@ -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.  */