summaryrefslogtreecommitdiff
path: root/graphics/tcm
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2001-09-12 07:35:57 +0000
committerjlam <jlam@pkgsrc.org>2001-09-12 07:35:57 +0000
commit9f05b9c58904450bc38f7aeafba283f2087a049b (patch)
treeccb80b071b1334b443c24975d5ffb23289a1084f /graphics/tcm
parent5796579ea61b9c8c0ede17ec4b0e32a3a94edfe9 (diff)
downloadpkgsrc-9f05b9c58904450bc38f7aeafba283f2087a049b.tar.gz
Wrap inclusion of <iostdio.h> within check for LESSTIF. Motif's
<Xm/Text.h> includes <stdio.h> while LessTif's doesn't, and stdio.h and iostdio.h have conflicting definitions.
Diffstat (limited to 'graphics/tcm')
-rw-r--r--graphics/tcm/patches/patch-al8
-rw-r--r--graphics/tcm/patches/patch-an10
2 files changed, 11 insertions, 7 deletions
diff --git a/graphics/tcm/patches/patch-al b/graphics/tcm/patches/patch-al
index ff2af5b052f..c7dad198bc9 100644
--- a/graphics/tcm/patches/patch-al
+++ b/graphics/tcm/patches/patch-al
@@ -1,12 +1,14 @@
-$NetBSD: patch-al,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+$NetBSD: patch-al,v 1.2 2001/09/12 07:35:57 jlam Exp $
---- ui/error.c.orig Thu Feb 22 17:59:07 2001
+--- ui/error.c.orig Fri Jun 18 04:29:04 1999
+++ ui/error.c
-@@ -23,6 +23,7 @@
+@@ -23,6 +23,9 @@
#include "application.h"
#include "messagelogdialog.h"
#include <stdarg.h>
++#ifdef LESSTIF
+#include <iostdio.h>
++#endif
void error(const char *fmt ...) {
// we're not getting huge strings
diff --git a/graphics/tcm/patches/patch-an b/graphics/tcm/patches/patch-an
index 95b527675b7..6e8120f9942 100644
--- a/graphics/tcm/patches/patch-an
+++ b/graphics/tcm/patches/patch-an
@@ -1,16 +1,18 @@
-$NetBSD: patch-an,v 1.1.1.1 2001/02/24 01:30:07 jtb Exp $
+$NetBSD: patch-an,v 1.2 2001/09/12 07:35:58 jlam Exp $
---- ui/application.c.orig Fri Nov 10 09:52:16 2000
+--- ui/application.c.orig Fri Nov 10 04:52:16 2000
+++ ui/application.c
-@@ -29,6 +29,7 @@
+@@ -29,6 +29,9 @@
#include "system.h"
#include "color.h"
#include <stdlib.h>
++#ifdef LESSTIF
+#include <iostdio.h>
++#endif
#include <string.h>
#include <Xm/XmStrDefs.h>
#ifdef USE_XMIM
-@@ -41,7 +42,7 @@
+@@ -41,7 +44,7 @@
return Application::XErrorHandler(dpy, err_event);
}