From f16d6f2c273c6896a4e79ac9db7a80c830794392 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sun, 11 Feb 2024 15:42:38 -0800 Subject: unifdef QNX4 Signed-off-by: Alan Coopersmith --- get_load.c | 22 ---------------------- get_rload.c | 2 +- 2 files changed, 1 insertion(+), 23 deletions(-) diff --git a/get_load.c b/get_load.c index ec081e8..918e27e 100644 --- a/get_load.c +++ b/get_load.c @@ -128,15 +128,10 @@ void GetLoadPoint( # else /* not HAVE_GETLOADAVG */ -# if defined(QNX4) -# define LOADSTUB -# endif -# ifndef LOADSTUB # if !defined(linux) && !defined(__GLIBC__) # include # endif /* !linux && ... */ -# endif /* LOADSTUB */ # ifdef CSRG_BASED # include @@ -271,22 +266,6 @@ void GetLoadPoint( # else /* __APPLE__ */ -# ifdef LOADSTUB - -void InitLoadPoint() -{ -} - -/* ARGSUSED */ -void GetLoadPoint( w, closure, call_data ) - Widget w; /* unused */ - XtPointer closure; /* unused */ - XtPointer call_data; /* pointer to (double) return value */ -{ - *(double *)call_data = 1.0; -} - -# else /* not LOADSTUB */ # ifdef __QNXNTO__ @@ -467,7 +446,6 @@ void GetLoadPoint( w, closure, call_data ) } # endif /* __bsdi__ else */ # endif /* __QNXNTO__ else */ -# endif /* LOADSTUB else */ # endif /* __APPLE__ else */ # endif /* __GNU__ else */ # endif /* linux else */ diff --git a/get_rload.c b/get_rload.c index c17598f..fd0f326 100644 --- a/get_rload.c +++ b/get_rload.c @@ -12,7 +12,7 @@ /* Not all OS supports get_rload steal the STUB idea from get_load */ -#if defined(QNX4) || defined(__CYGWIN__) || defined(_WIN32) +#if defined(__CYGWIN__) || defined(_WIN32) #define RLOADSTUB #endif -- cgit v1.2.3