aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-07-16 14:56:13 +0000
committerDan Nicolaescu2008-07-16 14:56:13 +0000
commit586b975c015e01ae666f6322c64408da86fdcdfe (patch)
treedf5110042cbc4585daebb83c11c2a08aa13af539
parent5cc9d48a1db9f374a010477696a77b06ee49a68b (diff)
downloademacs-586b975c015e01ae666f6322c64408da86fdcdfe.tar.gz
emacs-586b975c015e01ae666f6322c64408da86fdcdfe.zip
Undo reactoring from previous change.
-rw-r--r--src/ChangeLog9
-rw-r--r--src/m/intel386.h12
2 files changed, 19 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4b357aa2bb9..76dbe853d89 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12008-07-16 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * m/intel386.h: Undo reactoring from previous change.
4
12008-07-16 Jason Rumney <jasonr@gnu.org> 52008-07-16 Jason Rumney <jasonr@gnu.org>
2 6
3 * w32gui.h: Repeat 26 June changes lost by last change. 7 * w32gui.h: Repeat 26 June changes lost by last change.
@@ -58,8 +62,11 @@
58 Remove boilerplate comments. 62 Remove boilerplate comments.
59 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally. 63 * lisp.h (PNTR_COMPARISON_TYPE): Define it unconditionally.
60 64
65 * m/intel386.h (DATA_SEG_BITS): Remove definitions, only used on
66 USG systems which do not use DATA_SEG_BITS.
67 Refactor code. Remove boilerplate comments.
68
61 * m/ibms390.h: 69 * m/ibms390.h:
62 * m/intel386.h:
63 * m/m68k.h: 70 * m/m68k.h:
64 * s/bsd-common.h: 71 * s/bsd-common.h:
65 * s/cygwin.h: 72 * s/cygwin.h:
diff --git a/src/m/intel386.h b/src/m/intel386.h
index a9349be65ef..7b8f5bd4ec6 100644
--- a/src/m/intel386.h
+++ b/src/m/intel386.h
@@ -54,6 +54,7 @@ NOTE-END */
54 54
55#define DOT_GLOBAL_START 55#define DOT_GLOBAL_START
56 56
57#ifdef SOLARIS2
57/* Data type of load average, as read out of kmem. */ 58/* Data type of load average, as read out of kmem. */
58#define LOAD_AVE_TYPE long 59#define LOAD_AVE_TYPE long
59 60
@@ -61,16 +62,25 @@ NOTE-END */
61/* This is totally uncalibrated. */ 62/* This is totally uncalibrated. */
62#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE)) 63#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
63 64
64#ifdef SOLARIS2
65/* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86 65/* J.W.Hawtin@lut.ac.uk say Solaris 2.4 as well as Solaris 2.1 on X86
66 requires -lkvm as well. 66 requires -lkvm as well.
67 And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */ 67 And handa@etl.gov.jp says that -lkvm needs -llelf, at least on 2.5. */
68#define LIBS_MACHINE -lkvm -lelf 68#define LIBS_MACHINE -lkvm -lelf
69
69/* configure thinks solaris X86 has gethostname, but it does not work, 70/* configure thinks solaris X86 has gethostname, but it does not work,
70 so undefine it. */ 71 so undefine it. */
71#undef HAVE_GETHOSTNAME 72#undef HAVE_GETHOSTNAME
73
72#else /* not SOLARIS2 */ 74#else /* not SOLARIS2 */
73#ifdef USG5_4 /* Older USG systems do not support the load average. */ 75#ifdef USG5_4 /* Older USG systems do not support the load average. */
76/* Data type of load average, as read out of kmem. */
77
78#define LOAD_AVE_TYPE long
79
80/* Convert that into an integer that is 100 for a load average of 1.0 */
81/* This is totally uncalibrated. */
82
83#define LOAD_AVE_CVT(x) ((int) (((double) (x)) * 100.0 / FSCALE))
74#define FSCALE 256.0 84#define FSCALE 256.0
75#endif 85#endif
76#endif /* not SOLARIS2 */ 86#endif /* not SOLARIS2 */