aboutsummaryrefslogtreecommitdiffstats
path: root/src/m
diff options
context:
space:
mode:
authorRichard M. Stallman1994-06-13 21:09:17 +0000
committerRichard M. Stallman1994-06-13 21:09:17 +0000
commitbb0807e75ac38b11737dd75dd38bc633cbfa5c55 (patch)
tree6774dd693c633488430b7f656b65ce669090e3c1 /src/m
parent1cdf9a36429ef88956995df4518d369f5d39bb18 (diff)
downloademacs-bb0807e75ac38b11737dd75dd38bc633cbfa5c55.tar.gz
emacs-bb0807e75ac38b11737dd75dd38bc633cbfa5c55.zip
Add conditional for SOLARIS2.
Diffstat (limited to 'src/m')
-rw-r--r--src/m/intel386.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/m/intel386.h b/src/m/intel386.h
index 546e8a16b68..c0c7608e38a 100644
--- a/src/m/intel386.h
+++ b/src/m/intel386.h
@@ -120,6 +120,21 @@ NOTE-END */
120#define FSCALE 256.0 120#define FSCALE 256.0
121#endif 121#endif
122 122
123#ifdef SOLARIS2
124/* Data type of load average, as read out of kmem. */
125#define LOAD_AVE_TYPE long
126
127/* Convert that into an integer that is 100 for a load average of 1.0 */
128/* This is totally uncalibrated. */
129#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
130
131/* j.w.hawtin@lut.ac.uk says Solaris 2.1 on the X86 needs -lkvm, and it
132 already has FSCALE defined in a system header. configure thinks solaris
133 X86 has gethostname but it does not work so undefine it. */
134#define LIBS_MACHINE -lkvm
135#undef HAVE_GETHOSTNAME
136#endif
137
123/* Define CANNOT_DUMP on machines where unexec does not work. 138/* Define CANNOT_DUMP on machines where unexec does not work.
124 Then the function dump-emacs will not be defined 139 Then the function dump-emacs will not be defined
125 and temacs will do (load "loadup") automatically unless told otherwise. */ 140 and temacs will do (load "loadup") automatically unless told otherwise. */