summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-11 15:42:38 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-02-11 16:07:05 -0800
commitf16d6f2c273c6896a4e79ac9db7a80c830794392 (patch)
tree76ed4f7244f5adca9cc780da9a1f433505f044f7
parentf1ef1f0ac2a81b4aa59f1fba37ee11f6a0acbe22 (diff)
unifdef QNX4
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--get_load.c22
-rw-r--r--get_rload.c2
2 files changed, 1 insertions, 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 <nlist.h>
# endif /* !linux && ... */
-# endif /* LOADSTUB */
# ifdef CSRG_BASED
# include <sys/param.h>
@@ -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