diff options
author | Richard M. Stallman <rms@gnu.org> | 1994-06-13 21:09:17 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1994-06-13 21:09:17 +0000 |
commit | bb0807e75ac38b11737dd75dd38bc633cbfa5c55 (patch) | |
tree | 6774dd693c633488430b7f656b65ce669090e3c1 /src/m | |
parent | 1cdf9a36429ef88956995df4518d369f5d39bb18 (diff) | |
download | emacs-bb0807e75ac38b11737dd75dd38bc633cbfa5c55.tar.gz |
Add conditional for SOLARIS2.
Diffstat (limited to 'src/m')
-rw-r--r-- | src/m/intel386.h | 15 |
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 */ #define FSCALE 256.0 #endif +#ifdef SOLARIS2 +/* Data type of load average, as read out of kmem. */ +#define LOAD_AVE_TYPE long + +/* Convert that into an integer that is 100 for a load average of 1.0 */ +/* This is totally uncalibrated. */ +#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) + +/* j.w.hawtin@lut.ac.uk says Solaris 2.1 on the X86 needs -lkvm, and it + already has FSCALE defined in a system header. configure thinks solaris + X86 has gethostname but it does not work so undefine it. */ +#define LIBS_MACHINE -lkvm +#undef HAVE_GETHOSTNAME +#endif + /* Define CANNOT_DUMP on machines where unexec does not work. Then the function dump-emacs will not be defined and temacs will do (load "loadup") automatically unless told otherwise. */ |