diff options
| author | Paul Eggert | 2012-07-10 17:01:21 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-10 17:01:21 -0700 |
| commit | 22ffb97351d1081558c070a3c134d2be99993df6 (patch) | |
| tree | 16bda44878b33d2ef8ff039ffcb5cc8d407da977 /lib | |
| parent | e9a9ae0350689d352c2bdfa3af0eb722f587b966 (diff) | |
| download | emacs-22ffb97351d1081558c070a3c134d2be99993df6.tar.gz emacs-22ffb97351d1081558c070a3c134d2be99993df6.zip | |
Remove "#define unix" that is no longer needed (Bug#11905).
Merge from gnulib to make "#define unix" unnecessary, incorporating:
2012-07-10 getloadavg: clean out old Emacs and Autoconf cruft
2012-07-09 getopt: Simplify after Emacs changed.
* src/s/aix4-2.h (unix): Remove; no longer needed.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/getloadavg.c | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/lib/getloadavg.c b/lib/getloadavg.c index 79ea71787ac..a8ffefee33f 100644 --- a/lib/getloadavg.c +++ b/lib/getloadavg.c | |||
| @@ -80,45 +80,23 @@ | |||
| 80 | We also #define LDAV_PRIVILEGED if a program will require | 80 | We also #define LDAV_PRIVILEGED if a program will require |
| 81 | special installation to be able to call getloadavg. */ | 81 | special installation to be able to call getloadavg. */ |
| 82 | 82 | ||
| 83 | /* "configure" defines CONFIGURING_GETLOADAVG to sidestep problems | 83 | #include <config.h> |
| 84 | with partially-configured source directories. */ | ||
| 85 | |||
| 86 | #ifndef CONFIGURING_GETLOADAVG | ||
| 87 | # include <config.h> | ||
| 88 | # include <stdbool.h> | ||
| 89 | #endif | ||
| 90 | 84 | ||
| 91 | /* Specification. */ | 85 | /* Specification. */ |
| 92 | #include <stdlib.h> | 86 | #include <stdlib.h> |
| 93 | 87 | ||
| 94 | #include <errno.h> | 88 | #include <errno.h> |
| 89 | #include <stdbool.h> | ||
| 95 | #include <stdio.h> | 90 | #include <stdio.h> |
| 96 | 91 | ||
| 97 | # include <sys/types.h> | 92 | # include <sys/types.h> |
| 98 | 93 | ||
| 99 | /* Both the Emacs and non-Emacs sections want this. Some | 94 | # if HAVE_SYS_PARAM_H |
| 100 | configuration files' definitions for the LOAD_AVE_CVT macro (like | ||
| 101 | sparc.h's) use macros like FSCALE, defined here. */ | ||
| 102 | # if defined (unix) || defined (__unix) | ||
| 103 | # include <sys/param.h> | 95 | # include <sys/param.h> |
| 104 | # endif | 96 | # endif |
| 105 | 97 | ||
| 106 | # include "intprops.h" | 98 | # include "intprops.h" |
| 107 | 99 | ||
| 108 | /* The existing Emacs configuration files define a macro called | ||
| 109 | LOAD_AVE_CVT, which accepts a value of type LOAD_AVE_TYPE, and | ||
| 110 | returns the load average multiplied by 100. What we actually want | ||
| 111 | is a macro called LDAV_CVT, which returns the load average as an | ||
| 112 | unmultiplied double. | ||
| 113 | |||
| 114 | For backwards compatibility, we'll define LDAV_CVT in terms of | ||
| 115 | LOAD_AVE_CVT, but future machine config files should just define | ||
| 116 | LDAV_CVT directly. */ | ||
| 117 | |||
| 118 | # if !defined (LDAV_CVT) && defined (LOAD_AVE_CVT) | ||
| 119 | # define LDAV_CVT(n) (LOAD_AVE_CVT (n) / 100.0) | ||
| 120 | # endif | ||
| 121 | |||
| 122 | # if !defined (BSD) && defined (ultrix) | 100 | # if !defined (BSD) && defined (ultrix) |
| 123 | /* Ultrix behaves like BSD on Vaxen. */ | 101 | /* Ultrix behaves like BSD on Vaxen. */ |
| 124 | # define BSD | 102 | # define BSD |