From 74af396f2b8141de2a932bdf09f6e1ff0d7f1f82 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 6 Oct 2008 08:54:40 +0000 Subject: - tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger) --- libc/sysdeps/linux/common/bits/socket.h | 6 ++++++ libc/sysdeps/linux/mips/bits/socket.h | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'libc') diff --git a/libc/sysdeps/linux/common/bits/socket.h b/libc/sysdeps/linux/common/bits/socket.h index 2f3dc797b..c352a1712 100644 --- a/libc/sysdeps/linux/common/bits/socket.h +++ b/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 +#undef __GLIBC__ +#else +#include +#endif /* Structure used to manipulate the SO_LINGER option. */ diff --git a/libc/sysdeps/linux/mips/bits/socket.h b/libc/sysdeps/linux/mips/bits/socket.h index c43a4cd2e..0860b4d38 100644 --- a/libc/sysdeps/linux/mips/bits/socket.h +++ b/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 +#undef __GLIBC__ +#else +#include +#endif /* Structure used to manipulate the SO_LINGER option. */ -- cgit v1.2.3