summaryrefslogtreecommitdiff
path: root/gdb/gdbtk/generic/gdbtk-hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbtk/generic/gdbtk-hooks.c')
-rw-r--r--gdb/gdbtk/generic/gdbtk-hooks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbtk/generic/gdbtk-hooks.c b/gdb/gdbtk/generic/gdbtk-hooks.c
index fefdfc4acc5..3dcd81b378e 100644
--- a/gdb/gdbtk/generic/gdbtk-hooks.c
+++ b/gdb/gdbtk/generic/gdbtk-hooks.c
@@ -37,6 +37,10 @@
#include <windows.h>
#endif
+/* tcl header files includes varargs.h unless HAS_STDARG is defined,
+ but gdb uses stdarg.h, so make sure HAS_STDARG is defined. */
+#define HAS_STDARG 1
+
#include <itcl.h>
#include <tix.h>
#include "guitcl.h"