changeset 6889:8b9decfed36f

(C_SWITCH_X_MACHINE): add -DNeedVarargsProrotypes=0.
author Karl Heuer <kwzh@gnu.org>
date Fri, 15 Apr 1994 19:11:48 +0000
parents a39caeb88721
children 7462c6006494
files src/m/pmax.h
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/m/pmax.h	Fri Apr 15 01:04:26 1994 +0000
+++ b/src/m/pmax.h	Fri Apr 15 19:11:48 1994 +0000
@@ -78,7 +78,12 @@
 
    Using the MIT X11 distribution instead of the one provided by Dec will
    also solve the problem, but I doubt you can convince everyone to do this. */
-#define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0
+/* Addendum: the MIT X11 distribution neglects to define certain symbols
+   when NeedFunctionPrototypes is 0, but still tries to use them when
+   NeedVarargsProrotypes is 1 (which is its default value).  So if we're
+   going to disable non-variadic prototypes, we also need to disable
+   variadic prototypes.  --kwzh@gnu.ai.mit.edu */
+#define C_SWITCH_X_MACHINE -DNeedFunctionPrototypes=0 -DNeedVarargsPrototypes=0
 
 /* Enable a fix in process.c.  */
 #define SET_CHILD_PTY_PGRP