From 6f106ec95c47e6e36aaa24fa5ebfbfabc4203435 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 24 Feb 2013 08:38:54 -0800 Subject: unifdef -Usony Signed-off-by: Alan Coopersmith --- get_load.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'get_load.c') diff --git a/get_load.c b/get_load.c index cee6797..42d0b6c 100644 --- a/get_load.c +++ b/get_load.c @@ -138,14 +138,6 @@ void GetLoadPoint( #define FSCALE 1024.0 #endif -#if defined(sony) && OSMAJORVERSION == 4 -#ifdef mips -#include -#else -#include -#endif -#endif - #ifdef __osf__ /* * Use the table(2) interface; it doesn't require setuid root. @@ -691,23 +683,7 @@ void GetLoadPoint( w, closure, call_data ) *loadavg = (double)temp/FSCALE; } #else /* else not UTEK or sequent or alliant or SVR4 or sgi or hcx */ -# if defined(sony) && OSMAJORVERSION == 4 -# ifdef mips - { - fix temp; - (void) read(kmem, (char *)&temp, sizeof(fix)); - *loadavg = FIX_TO_DBL(temp); - } -# else /* not mips */ - { - long temp; - (void) read(kmem, (char *)&temp, sizeof(long)); - *loadavg = (double)temp/FSCALE; - } -# endif /* mips */ -# else /* not sony NEWSOS4 */ (void) read(kmem, (char *)loadavg, sizeof(double)); -# endif /* sony NEWOS4 */ #endif /* SVR4 or ... else */ return; } -- cgit v1.2.3