diff options
author | joerg <joerg> | 2012-11-11 22:30:08 +0000 |
---|---|---|
committer | joerg <joerg> | 2012-11-11 22:30:08 +0000 |
commit | 5574ac795b032635bf611411e14847e8fae60ad9 (patch) | |
tree | de1857b013deeaa212bc2362238d1090b32df29c /lang | |
parent | 65234d8fb545f5e3becededc1f6075530eed8d02 (diff) | |
download | pkgsrc-5574ac795b032635bf611411e14847e8fae60ad9.tar.gz |
Fix GNU inline usage.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/hugs/distinfo | 3 | ||||
-rw-r--r-- | lang/hugs/patches/patch-packages_base_include_HsBase.h | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/lang/hugs/distinfo b/lang/hugs/distinfo index ac8eebcd1c7..96e8e317913 100644 --- a/lang/hugs/distinfo +++ b/lang/hugs/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.14 2006/10/21 11:19:28 uebayasi Exp $ +$NetBSD: distinfo,v 1.15 2012/11/11 22:30:08 joerg Exp $ SHA1 (hugs98-Sep2006.tar.gz) = bf3fec6b28ab812839d20a6c19d0f39e8190b4cc RMD160 (hugs98-Sep2006.tar.gz) = 99b6b88bd7256efa16e97684f265932d29133c40 Size (hugs98-Sep2006.tar.gz) = 2157369 bytes +SHA1 (patch-packages_base_include_HsBase.h) = 003db97899985bec5783dfdda2436019f49686c6 diff --git a/lang/hugs/patches/patch-packages_base_include_HsBase.h b/lang/hugs/patches/patch-packages_base_include_HsBase.h new file mode 100644 index 00000000000..d83955e1698 --- /dev/null +++ b/lang/hugs/patches/patch-packages_base_include_HsBase.h @@ -0,0 +1,17 @@ +$NetBSD: patch-packages_base_include_HsBase.h,v 1.1 2012/11/11 22:30:09 joerg Exp $ + +--- packages/base/include/HsBase.h.orig 2006-09-20 22:01:52.000000000 +0000 ++++ packages/base/include/HsBase.h +@@ -221,7 +221,11 @@ StgWord64 stg_integerToWord64 (StgInt sa + # if defined(_MSC_VER) + # define INLINE extern __inline + # elif defined(__GNUC__) +-# define INLINE extern inline ++# ifdef __GNUC_STDC_INLINE__ ++# define INLINE extern inline __attribute__((__gnu_inline__)) ++# else ++# define INLINE extern inline ++# endif + # else + # define INLINE inline + # endif |