summaryrefslogtreecommitdiff
path: root/src/getloadavg.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-08-01 23:03:26 +0000
committerRoland McGrath <roland@gnu.org>1993-08-01 23:03:26 +0000
commit9e1caeec8f6157f613214490d84b95bd64860ca9 (patch)
treefe794a51169004aa9abbb349b9a8f46a5d82ea09 /src/getloadavg.c
parentebc93a40e33ac1f54083c16ea9f6a1d4d42ad040 (diff)
downloademacs-9e1caeec8f6157f613214490d84b95bd64860ca9.tar.gz
*** empty log message ***
Diffstat (limited to 'src/getloadavg.c')
-rw-r--r--src/getloadavg.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c
index ff868c2dafc..2d795db4521 100644
--- a/src/getloadavg.c
+++ b/src/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