summaryrefslogtreecommitdiff
path: root/archivers/hpack/patches
diff options
context:
space:
mode:
authorminskim <minskim>2004-06-09 16:17:47 +0000
committerminskim <minskim>2004-06-09 16:17:47 +0000
commit1583cc956401132a39a3f6140070d59bd08dde90 (patch)
treec4af75f2ad854532c392d3629fcfa9de23ca505b /archivers/hpack/patches
parent652b593b03a64455894848f5fc2eff66e061ae16 (diff)
downloadpkgsrc-1583cc956401132a39a3f6140070d59bd08dde90.tar.gz
Make this package build on Linux.
- Use lseek(2) instead of tell() on Linux. - Use "${RM} -f" instead of "rm" in @unexec.
Diffstat (limited to 'archivers/hpack/patches')
-rw-r--r--archivers/hpack/patches/patch-ae16
1 files changed, 12 insertions, 4 deletions
diff --git a/archivers/hpack/patches/patch-ae b/archivers/hpack/patches/patch-ae
index cc3a050b802..404e23f937b 100644
--- a/archivers/hpack/patches/patch-ae
+++ b/archivers/hpack/patches/patch-ae
@@ -1,8 +1,8 @@
-$NetBSD: patch-ae,v 1.2 2002/03/09 03:27:52 yyamano Exp $
+$NetBSD: patch-ae,v 1.3 2004/06/09 16:17:47 minskim Exp $
---- system.h.orig Sat Aug 28 02:16:40 1993
+--- system.h.orig 1993-08-27 12:16:40.000000000 -0500
+++ system.h
-@@ -779,6 +779,10 @@
+@@ -779,6 +779,10 @@ void strlwr( char *string );
#if defined( AIX ) || defined( AIX370 ) || defined( AIX386 )
#define MAX_PATH ( 1023 + 1 )
#define MAX_FILENAME ( 254 + 1 )
@@ -13,7 +13,7 @@ $NetBSD: patch-ae,v 1.2 2002/03/09 03:27:52 yyamano Exp $
#elif defined( BSD386 ) || defined( GENERIC ) || defined( HPUX ) || \
defined( IRIX ) || defined( LINUX ) || defined( NEXT ) || \
defined( OSF1 ) || defined( SUNOS ) || defined( ULTRIX ) || \
-@@ -899,6 +903,13 @@
+@@ -899,6 +903,13 @@ typedef struct {
#if defined( AIX ) || defined( AIX370 )
#define NEED_STRLWR /* AIX RS6000, AIX 370 */
#define NEED_STRICMP
@@ -27,3 +27,11 @@ $NetBSD: patch-ae,v 1.2 2002/03/09 03:27:52 yyamano Exp $
#elif defined( AIX386 )
#define NEED_STRLWR /* AIX 386 */
#define NEED_STRICMP
+@@ -919,6 +930,7 @@ typedef struct {
+ #define NEED_STRICMP
+ #elif defined( ISC ) /* ISC Unix */
+ #elif defined( LINUX ) /* Linux */
++ #define tell(fd) lseek((fd),(off_t)0,SEEK_CUR)
+ #define NEED_STRLWR
+ #define NEED_STRICMP
+ #elif defined( MINT ) /* MiNT */