diff options
author | dholland <dholland> | 2011-09-12 04:46:54 +0000 |
---|---|---|
committer | dholland <dholland> | 2011-09-12 04:46:54 +0000 |
commit | 0b2a4f005b0569fe7f626f19b362578a9633e63f (patch) | |
tree | 06be36dc8f446398c4bdece0ef405f93428f88d0 /archivers/hpack/patches | |
parent | 6d9272f9b20ad77d40a233e8322fe19bbfd4d47d (diff) | |
download | pkgsrc-0b2a4f005b0569fe7f626f19b362578a9633e63f.tar.gz |
Disable inline by always #defining it to nothing. What motivates
people to declare functions inline without making any kind of inline
definition available?
Diffstat (limited to 'archivers/hpack/patches')
-rw-r--r-- | archivers/hpack/patches/patch-aa | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/archivers/hpack/patches/patch-aa b/archivers/hpack/patches/patch-aa index 21335c83d50..b23e91b21e1 100644 --- a/archivers/hpack/patches/patch-aa +++ b/archivers/hpack/patches/patch-aa @@ -1,7 +1,13 @@ -$NetBSD: patch-aa,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $ +$NetBSD: patch-aa,v 1.2 2011/09/12 04:46:54 dholland Exp $ ---- defs.h.orig Sun May 23 17:31:43 1999 -+++ defs.h Sun May 23 17:26:19 1999 +- quick and dirty LP64 fix: "unsigned" is more often 32-bit than +"unsigned long" is. + +- disable inline unconditionally as the code in the package completely +misuses it. + +--- defs.h.orig 1993-05-31 15:17:00.000000000 +0000 ++++ defs.h @@ -20,7 +20,7 @@ typedef unsigned char BYTE; typedef unsigned short int WORD; /* 16-bit unsigned on most systems */ @@ -11,12 +17,12 @@ $NetBSD: patch-aa,v 1.1.1.1 1999/05/23 22:41:21 tv Exp $ #endif /* _OS2EMX.H */ typedef int BOOLEAN; -@@ -43,7 +43,7 @@ +@@ -43,7 +43,7 @@ typedef int BOOLEAN; /* 'inline' patch for compilers which can't handle this */ -#if !( defined( __CPLUSPLUS__ ) || defined( __cplusplus ) ) || defined( __TSC__ ) -+#if !( defined( __GNUC__ ) || defined( __CPLUSPLUS__ ) || defined( __cplusplus ) ) || defined( __TSC__ ) ++#if 1 #define inline #endif /* !( __CPLUSPLUS__ || __cplusplus ) */ |