summaryrefslogtreecommitdiff
path: root/getloadavg.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1993-08-01 23:03:26 +0000
committerRoland McGrath <roland@redhat.com>1993-08-01 23:03:26 +0000
commitae087fbb2f5ec8f1439091aad1eb2f9764cb1bbe (patch)
treec07c3427d7b5266d533d7c894acd5ceeac5794ac /getloadavg.c
parent714aeaf85772dac81822fd2f510763ed4b9af8b9 (diff)
downloadgunmake-ae087fbb2f5ec8f1439091aad1eb2f9764cb1bbe.tar.gz
*** empty log message ***
Diffstat (limited to 'getloadavg.c')
-rw-r--r--getloadavg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/getloadavg.c b/getloadavg.c
index ff868c2..2d795db 100644
--- a/getloadavg.c
+++ b/getloadavg.c
@@ -72,6 +72,13 @@
#include "config.h"
#endif
+
+/* Exclude all the code except the test program at the end
+ if the system has its own `getloadavg' function. */
+
+#ifndef HAVE_GETLOADAVG
+
+
/* The existing Emacs configuration files define a macro called
LOAD_AVE_CVT, which accepts a value of type LOAD_AVE_TYPE, and
returns the load average multiplied by 100. What we actually want
@@ -798,6 +805,8 @@ getloadavg (loadavg, nelem)
return -1;
#endif
}
+
+#endif /* ! HAVE_GETLOADAVG */
#ifdef TEST
void