diff options
author | joerg <joerg@pkgsrc.org> | 2012-05-04 16:06:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-05-04 16:06:13 +0000 |
commit | 61017adf00046d31cf03af3cc74431233b4b0c27 (patch) | |
tree | db98231745e4e23282392682b70bad1392a321ad /comms/asterisk | |
parent | ecd504706896b450f21ec8e5241b405f85e32846 (diff) | |
download | pkgsrc-61017adf00046d31cf03af3cc74431233b4b0c27.tar.gz |
Don't override optimizer settings with absurd levels.
Fix inline definitions to work with C99 compiler.
Diffstat (limited to 'comms/asterisk')
-rw-r--r-- | comms/asterisk/distinfo | 3 | ||||
-rw-r--r-- | comms/asterisk/patches/patch-include_asterisk_inline__api.h | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/comms/asterisk/distinfo b/comms/asterisk/distinfo index 278bca508e8..8de4287c921 100644 --- a/comms/asterisk/distinfo +++ b/comms/asterisk/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.46 2012/02/16 16:21:36 hans Exp $ +$NetBSD: distinfo,v 1.47 2012/05/04 16:06:13 joerg Exp $ SHA1 (asterisk-1.2.37.tar.gz) = c9a3c4684e021f62b4d19f6e0c8fc11f64db19d6 RMD160 (asterisk-1.2.37.tar.gz) = 1de7ff96d3b1fd8d89f3ef7b3bb9e35bedccfb33 @@ -17,3 +17,4 @@ SHA1 (patch-al) = 1457c9a12eb5c5621eb244423c2190fb430866e7 SHA1 (patch-am) = a652b091462673390e19ab47e17500d055779094 SHA1 (patch-an) = 5bfb86853e868bc78eb0061871f4abce0df1ba2c SHA1 (patch-include_asterisk_channel.h) = a651103dcb9267569dcf6d08ff05e596463606e6 +SHA1 (patch-include_asterisk_inline__api.h) = ff43d14e2608dd08d7d03799dfe9847f9f7f5666 diff --git a/comms/asterisk/patches/patch-include_asterisk_inline__api.h b/comms/asterisk/patches/patch-include_asterisk_inline__api.h new file mode 100644 index 00000000000..fbb941453ba --- /dev/null +++ b/comms/asterisk/patches/patch-include_asterisk_inline__api.h @@ -0,0 +1,17 @@ +$NetBSD: patch-include_asterisk_inline__api.h,v 1.1 2012/05/04 16:06:13 joerg Exp $ + +--- include/asterisk/inline_api.h.orig 2006-02-14 19:14:15.000000000 +0000 ++++ include/asterisk/inline_api.h +@@ -46,7 +46,11 @@ + #if !defined(LOW_MEMORY) + + #if !defined(AST_API_MODULE) +-#define AST_INLINE_API(hdr, body) hdr; extern inline hdr body ++# ifndef __GNUC_STDC_INLINE__ ++# define AST_INLINE_API(hdr, body) hdr; extern inline hdr body ++# else ++# define AST_INLINE_API(hdr, body) inline hdr body ++# endif + #else + #define AST_INLINE_API(hdr, body) hdr; hdr body + #endif |