diff options
author | joerg <joerg@pkgsrc.org> | 2012-11-11 22:30:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-11-11 22:30:08 +0000 |
commit | f623a866df72351b5452983d960ca77324f5a6bf (patch) | |
tree | de1857b013deeaa212bc2362238d1090b32df29c /lang | |
parent | 8c02f588086246d2515c11fdf95b269ecfeafc27 (diff) | |
download | pkgsrc-f623a866df72351b5452983d960ca77324f5a6bf.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 |