diff options
| author | Roland McGrath | 1993-08-01 23:03:26 +0000 |
|---|---|---|
| committer | Roland McGrath | 1993-08-01 23:03:26 +0000 |
| commit | 04402ae3dc272639d272beed6b5e41e8662f62ef (patch) | |
| tree | bba634b0574765782430fcab6c070a84b9db5188 /src | |
| parent | b7294c7587dfb8bc987881247bb295c06b3114b3 (diff) | |
| download | emacs-04402ae3dc272639d272beed6b5e41e8662f62ef.tar.gz emacs-04402ae3dc272639d272beed6b5e41e8662f62ef.zip | |
*** empty log message ***
Diffstat (limited to 'src')
| -rw-r--r-- | src/getloadavg.c | 9 |
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 @@ | |||
| 72 | #include "config.h" | 72 | #include "config.h" |
| 73 | #endif | 73 | #endif |
| 74 | 74 | ||
| 75 | |||
| 76 | /* Exclude all the code except the test program at the end | ||
| 77 | if the system has its own `getloadavg' function. */ | ||
| 78 | |||
| 79 | #ifndef HAVE_GETLOADAVG | ||
| 80 | |||
| 81 | |||
| 75 | /* The existing Emacs configuration files define a macro called | 82 | /* The existing Emacs configuration files define a macro called |
| 76 | LOAD_AVE_CVT, which accepts a value of type LOAD_AVE_TYPE, and | 83 | LOAD_AVE_CVT, which accepts a value of type LOAD_AVE_TYPE, and |
| 77 | returns the load average multiplied by 100. What we actually want | 84 | returns the load average multiplied by 100. What we actually want |
| @@ -798,6 +805,8 @@ getloadavg (loadavg, nelem) | |||
| 798 | return -1; | 805 | return -1; |
| 799 | #endif | 806 | #endif |
| 800 | } | 807 | } |
| 808 | |||
| 809 | #endif /* ! HAVE_GETLOADAVG */ | ||
| 801 | 810 | ||
| 802 | #ifdef TEST | 811 | #ifdef TEST |
| 803 | void | 812 | void |