emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/m/intel386.h,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/src/m/intel386.h,v
Date: Wed, 16 Jul 2008 14:56:14 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   08/07/16 14:56:13

Index: m/intel386.h
===================================================================
RCS file: /cvsroot/emacs/emacs/src/m/intel386.h,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -b -r1.53 -r1.54
--- m/intel386.h        16 Jul 2008 07:26:29 -0000      1.53
+++ m/intel386.h        16 Jul 2008 14:56:13 -0000      1.54
@@ -54,6 +54,7 @@
 
 #define DOT_GLOBAL_START
 
+#ifdef SOLARIS2
 /* Data type of load average, as read out of kmem.  */
 #define LOAD_AVE_TYPE long
 
@@ -61,16 +62,25 @@
 /* This is totally uncalibrated. */
 #define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
 
-#ifdef SOLARIS2
 /* address@hidden say Solaris 2.4 as well as Solaris 2.1 on X86
    requires -lkvm as well.
    And address@hidden says that -lkvm needs -llelf, at least on 2.5.  */
 #define LIBS_MACHINE -lkvm -lelf
+
 /* configure thinks solaris X86 has gethostname, but it does not work,
    so undefine it.  */
 #undef HAVE_GETHOSTNAME
+
 #else /* not SOLARIS2 */
 #ifdef USG5_4 /* Older USG systems do not support the load average.  */
+/* 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))
 #define FSCALE 256.0
 #endif
 #endif /* not SOLARIS2 */




reply via email to

[Prev in Thread] Current Thread [Next in Thread]