summaryrefslogtreecommitdiff
path: root/archivers/hpack/patches
diff options
context:
space:
mode:
authoryyamano <yyamano@pkgsrc.org>2002-03-09 03:27:51 +0000
committeryyamano <yyamano@pkgsrc.org>2002-03-09 03:27:51 +0000
commit307c1dd6794a36010c4d5606184b95783e3a135b (patch)
tree73c33519cc638aa149d76554e9ecf214bcee1a7f /archivers/hpack/patches
parenta1f95dbfd962974f0d481a6ea562dc47680e1598 (diff)
downloadpkgsrc-307c1dd6794a36010c4d5606184b95783e3a135b.tar.gz
Make it build on Darwin.
* Use curses. Darwin doesn't have termcap. * Add __APPLE__ to system.h to define necessary macros. * Replace __{Free,Open,Net}BSD__ with __UNIX__ in language/language.c. It worked on *BSD, but not correct logically. XXX -no-cpp-precomp issue isn't fixed yet. I think we should fix it in XXX generic way.
Diffstat (limited to 'archivers/hpack/patches')
-rw-r--r--archivers/hpack/patches/patch-ad14
-rw-r--r--archivers/hpack/patches/patch-ae10
2 files changed, 12 insertions, 12 deletions
diff --git a/archivers/hpack/patches/patch-ad b/archivers/hpack/patches/patch-ad
index 1c726ff8036..5a05914ab59 100644
--- a/archivers/hpack/patches/patch-ad
+++ b/archivers/hpack/patches/patch-ad
@@ -1,8 +1,8 @@
-$NetBSD: patch-ad,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
+$NetBSD: patch-ad,v 1.2 2002/03/09 03:27:51 yyamano Exp $
---- language/language.c.orig Fri Aug 27 05:52:10 1993
-+++ language/language.c Sun May 23 17:26:17 1999
-@@ -187,7 +187,7 @@
+--- language/language.c.orig Thu Sep 23 11:23:20 1993
++++ language/language.c
+@@ -188,7 +188,7 @@
/* Process user response */
response = hgetch();
response = toupper( response ); /* Damn macros */
@@ -11,7 +11,7 @@ $NetBSD: patch-ad,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
if( response == RESPONSE_QUIT )
return;
lineNo -= ( response == ' ' ) ? screenHeight : 1;
-@@ -267,6 +267,9 @@
+@@ -268,6 +268,9 @@
if( ( inFD = hopen( fileNamePtr, O_RDONLY | S_DENYWR | A_RANDSEQ ) ) == ERROR )
return( ERROR );
#elif defined( __UNIX__ )
@@ -21,11 +21,11 @@ $NetBSD: patch-ad,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
/* Build path to language file and try and process it */
fileNamePtr = getFirstKeyPath( getenv( "PATH" ), DATA_FILENAME );
while( fileNamePtr != NULL )
-@@ -289,6 +292,9 @@
+@@ -290,6 +293,9 @@
return( ERROR ); /* Couldn't find/open input file */
}
#endif /* System-specific handling of how to find language defn.file */
-+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++#if defined(__UNIX__)
+found:
+#endif
setInputFD( inFD );
diff --git a/archivers/hpack/patches/patch-ae b/archivers/hpack/patches/patch-ae
index 7f04188518b..cc3a050b802 100644
--- a/archivers/hpack/patches/patch-ae
+++ b/archivers/hpack/patches/patch-ae
@@ -1,12 +1,12 @@
-$NetBSD: patch-ae,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
+$NetBSD: patch-ae,v 1.2 2002/03/09 03:27:52 yyamano Exp $
---- system.h.orig Fri Aug 27 13:16:40 1993
-+++ system.h Sun May 23 17:43:15 1999
+--- system.h.orig Sat Aug 28 02:16:40 1993
++++ system.h
@@ -779,6 +779,10 @@
#if defined( AIX ) || defined( AIX370 ) || defined( AIX386 )
#define MAX_PATH ( 1023 + 1 )
#define MAX_FILENAME ( 254 + 1 )
-+#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
++#elif defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+ #include <limits.h>
+ #define MAX_PATH ( _POSIX_PATH_MAX + 1 )
+ #define MAX_FILENAME ( NAME_MAX + 1 )
@@ -17,7 +17,7 @@ $NetBSD: patch-ae,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $
#if defined( AIX ) || defined( AIX370 )
#define NEED_STRLWR /* AIX RS6000, AIX 370 */
#define NEED_STRICMP
-+#elif defined( __FreeBSD__ ) || defined(__OpenBSD__) || defined(__NetBSD__) /* Amdahl UTS4 */
++#elif defined( __FreeBSD__ ) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__APPLE__) /* Amdahl UTS4 */
+ #include <unistd.h>
+ #define tell(fd) lseek((fd),(off_t)0,SEEK_CUR)
+ #define NEED_STRLWR