aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2009-06-27 02:40:34 +0000
committerGlenn Morris2009-06-27 02:40:34 +0000
commit07cc3c358f51ba83ebe339e7ce9a0e1dd4d3a687 (patch)
tree3dc89adfcf9ab7d4b45b30d2367dba008b980610 /src
parent4bbbda22da3ac3ac6908b6e8d4d6868a7e66ac3d (diff)
downloademacs-07cc3c358f51ba83ebe339e7ce9a0e1dd4d3a687.tar.gz
emacs-07cc3c358f51ba83ebe339e7ce9a0e1dd4d3a687.zip
Trim to just the stuff applicable to netbsd, since the other platforms
have been removed.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/m/pmax.h78
2 files changed, 7 insertions, 75 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bf0dcfdfd18..2572c3ea13e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12009-06-27 Glenn Morris <rgm@gnu.org>
2
3 * m/pmax.h: Restore file, with only netbsd portions.
4
12009-06-26 David Reitter <david.reitter@gmail.com> 52009-06-26 David Reitter <david.reitter@gmail.com>
2 6
3 * nsterm.m (keydown): avoid infinite loop 7 * nsterm.m (keydown): avoid infinite loop
diff --git a/src/m/pmax.h b/src/m/pmax.h
index 4f22d1fcdd0..ac54997d5e4 100644
--- a/src/m/pmax.h
+++ b/src/m/pmax.h
@@ -18,40 +18,28 @@ GNU General Public License for more details.
18You should have received a copy of the GNU General Public License 18You should have received a copy of the GNU General Public License
19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ 19along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
20 20
21
22#include "mips.h" 21#include "mips.h"
23 22
24/* The following line tells the configuration script what sort of 23/* The following line tells the configuration script what sort of
25 operating system this machine is likely to run. 24 operating system this machine is likely to run.
26 USUAL-OPSYS="note" 25 USUAL-OPSYS="netbsd"
27 26
28NOTE-START 27NOTE-START
29The operating system would be either osf1, ultrix, or NetBSD. 28The only operating system is NetBSD (osf1 and ultrix removed after 22.3).
30NOTE-END */ 29NOTE-END */
31 30
32#ifndef __MIPSEB__ 31#ifndef __MIPSEB__
33#undef WORDS_BIG_ENDIAN 32#undef WORDS_BIG_ENDIAN
34#endif 33#endif
35#if defined (__NetBSD__) 34
36#define BROKEN_NOCOMBRELOC 35#define BROKEN_NOCOMBRELOC
37#else
38#undef LIB_STANDARD
39#undef START_FILES
40#endif
41#undef COFF 36#undef COFF
42#undef TERMINFO 37#undef TERMINFO
43#define MAIL_USE_FLOCK 38#define MAIL_USE_FLOCK
44#define HAVE_UNION_WAIT 39#define HAVE_UNION_WAIT
45 40
46
47#ifdef MACH 41#ifdef MACH
48#define START_FILES pre-crt0.o /usr/lib/crt0.o 42#define START_FILES pre-crt0.o /usr/lib/crt0.o
49#else
50#if !defined (__NetBSD__)
51/* This line starts being needed with ultrix 4.0. */
52/* You must delete it for version 3.1. */
53#define START_FILES pre-crt0.o /usr/lib/cmplrs/cc/crt0.o
54#endif
55#endif 43#endif
56 44
57/* Supposedly the following will overcome a kernel bug. */ 45/* Supposedly the following will overcome a kernel bug. */
@@ -60,66 +48,6 @@ NOTE-END */
60#define DATA_START 0x10000000 48#define DATA_START 0x10000000
61#define DATA_SEG_BITS 0x10000000 49#define DATA_SEG_BITS 0x10000000
62 50
63#if 0
64/* I don't see any such conflict in Ultrix 4.2, 4.2a, or 4.3. And
65 the relocating allocator is a real win. -JimB */
66
67/* In Ultrix 4.1, XvmsAlloc.o in libX11.a seems to insist
68 on defining malloc itself. This should avoid conflicting with it. */
69#define SYSTEM_MALLOC
70#endif
71
72/* Override what mips.h says about this. */
73#if !defined (__NetBSD__)
74#undef LINKER
75#endif
76
77#ifdef ultrix
78/* Ultrix 4.2 (perhaps also 4.1) implements O_NONBLOCK
79 but it doesn't work right;
80 and it causes hanging in read_process_output. */
81#define BROKEN_O_NONBLOCK
82#endif
83
84#ifndef __NetBSD__
85/* mcc@timessqr.gc.cuny.edu says this makes Emacs work with DECnet. */
86#ifdef HAVE_LIBDNET
87#define LIBS_MACHINE -ldnet
88#endif
89
90/* mcc@timessqr.gc.cuny.edu says it is /vmunix on Ultrix 4.2a. */
91#undef KERNEL_FILE
92#define KERNEL_FILE "/vmunix"
93#endif
94
95#ifdef ultrix
96/* Jim Wilson writes:
97 [...] The X11 include files that Dec distributes with Ultrix
98 are bogus.
99
100 When __STDC__ is defined (which is true with gcc), the X11 include files
101 try to define prototypes. The prototypes however use types which haven't
102 been defined yet, and thus we get syntax/parse errors.
103
104 You can not fix this by changing the include files, because the prototypes
105 create circular dependencies, in particular Xutil.h depends on types defined
106 in Xlib.h, and Xlib.h depends on types defined in Xutil.h. So, no matter
107 which order you try to include them in, it will still fail.
108
109 Compiling with -DNeedFunctionPrototypes=0 will solve the problem by
110 directly inhibiting the bad prototypes. This could perhaps just be put in
111 an a Ultrix configuration file.
112
113 Using the MIT X11 distribution instead of the one provided by Dec will
114 also solve the problem, but I doubt you can convince everyone to do this. */
115/* Addendum: the MIT X11 distribution neglects to define certain symbols
116 when NeedFunctionPrototypes is 0, but still tries to use them when
117 NeedVarargsPrototypes is 1 (which is its default value). So if we're
118 going to disable non-variadic prototypes, we also need to disable
119 variadic prototypes. --kwzh@gnu.ai.mit.edu */
120#define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0 -DNeedVarargsPrototypes=0
121#endif
122
123/* Enable a fix in process.c. */ 51/* Enable a fix in process.c. */
124#define SET_CHILD_PTY_PGRP 52#define SET_CHILD_PTY_PGRP
125 53