From 8182e7cfe7d9c60567e48b876282594395062530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwenol=C3=A9=20Beauchesne?= Date: Tue, 18 Feb 2003 16:48:11 +0000 Subject: Merge in CVS dietlibc 0.21 for IA-64 and X86-64 support. However, drop the following architectures we currently don't support: arm, mips, mipsel, parisc, s390, sparc64. --- mdk-stage1/dietlibc/lib/getsockopt.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'mdk-stage1/dietlibc/lib/getsockopt.c') diff --git a/mdk-stage1/dietlibc/lib/getsockopt.c b/mdk-stage1/dietlibc/lib/getsockopt.c index 8c0a57557..05b71d77d 100644 --- a/mdk-stage1/dietlibc/lib/getsockopt.c +++ b/mdk-stage1/dietlibc/lib/getsockopt.c @@ -1,13 +1,12 @@ -#include +#include +#include extern int socketcall(int callno,long* args); -int getsockopt(int a, int b, int c, void *d, int e) { -#ifdef __i386__ - return socketcall(SYS_GETSOCKOPT, (long*)&a); -#else +int __libc_getsockopt(int a, int b, int c, void *d, int e); +int __libc_getsockopt(int a, int b, int c, void *d, int e) { unsigned long args[] = { a, b, c, (long)d, e }; return socketcall(SYS_GETSOCKOPT, args); -#endif } +int getsockopt(int s, int level, int optname, void * optval, socklen_t *optlen) __attribute__((weak,alias("__libc_getsockopt"))); -- cgit v1.2.1