aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJim Blandy1993-07-06 06:57:49 +0000
committerJim Blandy1993-07-06 06:57:49 +0000
commit9b4d86fc624ec5d27d823330ebe14d57b867db45 (patch)
tree4e4d44db48851e0dc9f5c7a5132417fe633d4ab9 /src
parentcf50f71757a88c37d8c35f458d53fbe697a8e11b (diff)
downloademacs-9b4d86fc624ec5d27d823330ebe14d57b867db45.tar.gz
emacs-9b4d86fc624ec5d27d823330ebe14d57b867db45.zip
* m/pmax.h (C_SWITCH_X_MACHINE): Set this to
"-DNeedFunctionPrototypes=0", to avoid lossage in DEC X11 header files. * ymakefile (really-oldXMenu): Pass C_SWITCH_X_MACHINE to the oldXMenu make.
Diffstat (limited to 'src')
-rw-r--r--src/m/pmax.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/m/pmax.h b/src/m/pmax.h
index bd3b298a960..b307729de43 100644
--- a/src/m/pmax.h
+++ b/src/m/pmax.h
@@ -58,3 +58,24 @@ NOTE-END */
58/* mcc@timessqr.gc.cuny.edu says it is /vmunix on Ultrix 4.2a. */ 58/* mcc@timessqr.gc.cuny.edu says it is /vmunix on Ultrix 4.2a. */
59#undef KERNEL_FILE 59#undef KERNEL_FILE
60#define KERNEL_FILE "/vmunix" 60#define KERNEL_FILE "/vmunix"
61
62/* Jim Wilson writes:
63 [...] The X11 include files that Dec distributes with Ultrix
64 are bogus.
65
66 When __STDC__ is defined (which is true with gcc), the X11 include files
67 try to define prototypes. The prototypes however use types which haven't
68 been defined yet, and thus we get syntax/parse errors.
69
70 You can not fix this by changing the include files, because the prototypes
71 create circular dependencies, in particular Xutil.h depends on types defined
72 in Xlib.h, and Xlib.h depends on types defined in Xutil.h. So, no matter
73 which order you try to include them in, it will still fail.
74
75 Compiling with -DNeedFunctionPrototypes=0 will solve the problem by
76 directly inhibiting the bad prototypes. This could perhaps just be put in
77 an a Ultrix configuration file.
78
79 Using the MIT X11 distribution instead of the one provided by Dec will
80 also solve the problem, but I doubt you can convince everyone to do this. */
81#define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0