aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRoland McGrath1994-06-04 05:24:48 +0000
committerRoland McGrath1994-06-04 05:24:48 +0000
commit39c5a83f1c0203ea472319d2e3f588a310ee0083 (patch)
tree5a50547557b7f55f8579b9415876ac0e7cfb51ce /src
parent533b55576e8c789c3ac1d760f224bbee61a3666c (diff)
downloademacs-39c5a83f1c0203ea472319d2e3f588a310ee0083.tar.gz
emacs-39c5a83f1c0203ea472319d2e3f588a310ee0083.zip
Put #include of errno.h and decl of errno before #ifndef HAVE_GETLOADAVG.
Diffstat (limited to 'src')
-rw-r--r--src/getloadavg.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/getloadavg.c b/src/getloadavg.c
index 03b4de0239e..0f730a7ab2b 100644
--- a/src/getloadavg.c
+++ b/src/getloadavg.c
@@ -1,5 +1,5 @@
1/* Get the system load averages. 1/* Get the system load averages.
2 Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93 2 Copyright (C) 1985, 86, 87, 88, 89, 91, 92, 93, 1994
3 Free Software Foundation, Inc. 3 Free Software Foundation, Inc.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
@@ -80,9 +80,17 @@
80#endif 80#endif
81#endif 81#endif
82 82
83
84/* Exclude all the code except the test program at the end 83/* Exclude all the code except the test program at the end
85 if the system has its own `getloadavg' function. */ 84 if the system has its own `getloadavg' function.
85
86 The declaration of `errno' is needed by the test program
87 as well as the function itself, so it comes first. */
88
89#include <errno.h>
90
91#ifndef errno
92extern int errno;
93#endif
86 94
87#ifndef HAVE_GETLOADAVG 95#ifndef HAVE_GETLOADAVG
88 96
@@ -331,11 +339,6 @@
331#endif 339#endif
332 340
333#include <stdio.h> 341#include <stdio.h>
334#include <errno.h>
335
336#ifndef errno
337extern int errno;
338#endif
339 342
340/* LOAD_AVE_TYPE should only get defined if we're going to use the 343/* LOAD_AVE_TYPE should only get defined if we're going to use the
341 nlist method. */ 344 nlist method. */