From 014f14263c4e9a71935e5852d092f41ba1ba2570 Mon Sep 17 00:00:00 2001 From: tron Date: Fri, 13 Aug 1999 19:35:45 +0000 Subject: Import new "xp" package submitted by Julian Coleman in PR pkg/8197: A fast X11 text file viewer using Athena widgets --- x11/xp/patches/patch-aa | 32 ++++++++++++++++++++++++++++++++ x11/xp/patches/patch-ab | 23 +++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 x11/xp/patches/patch-aa create mode 100644 x11/xp/patches/patch-ab (limited to 'x11/xp/patches') diff --git a/x11/xp/patches/patch-aa b/x11/xp/patches/patch-aa new file mode 100644 index 00000000000..6096b24e3af --- /dev/null +++ b/x11/xp/patches/patch-aa @@ -0,0 +1,32 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $ + +--- Imakefile.orig Thu Feb 11 15:55:09 1999 ++++ Imakefile Fri Aug 13 21:30:56 1999 +@@ -1,23 +1,12 @@ +-/* set MKDIRHIER in case you change BINDIR */ +-MKDIRHIER = mkdirhier +- +-XPTOP = /usr/local/xp/1.2b10 +- +-/* where do you want the binary installed */ +-BINDIR = ${XPTOP}/bin +- +-/* where do you want the man page installed */ +-MANDIR = ${XPTOP}/man/man1 +- +-/* where do you want the application defaults file installed */ +-XAPPLOADDIR = ${XPTOP}/lib/app-defaults +- +- + #ifdef HasVFork + VFORK_DEFINES = -DHASVFORK + #endif + + #XP_DEFINES= -DNOPUTENV ++ ++#if !(defined(SunArchitecture) && OSMajorVersion == 4) ++XP_DEFINES+= -DHAS_STRERROR ++#endif + + DEFINES= $(SIGNAL_DEFINES) $(VFORK_DEFINES) $(XP_DEFINES) + diff --git a/x11/xp/patches/patch-ab b/x11/xp/patches/patch-ab new file mode 100644 index 00000000000..2216b2f5cef --- /dev/null +++ b/x11/xp/patches/patch-ab @@ -0,0 +1,23 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/08/13 19:35:45 tron Exp $ + +--- utils.c.orig Thu Feb 11 13:44:15 1999 ++++ utils.c Fri Aug 13 21:30:56 1999 +@@ -1,13 +1,18 @@ + #include ++#include + #define NULL 0 + + + char * + uerror() { ++#ifdef HAS_STRERROR ++ return strerror(errno); ++#else + extern int sys_nerr; + extern char *sys_errlist[]; + if (errno > sys_nerr) + return NULL; + else + return sys_errlist[errno]; ++#endif + } -- cgit v1.2.3