[DRE-commits] [ruby-sigar] 02/04: Fix build with GCC 5

zeha at debian.org zeha at debian.org
Wed Sep 9 16:00:37 UTC 2015


This is an automated email from the git hooks/post-receive script.

zeha pushed a commit to branch master
in repository ruby-sigar.

commit 169bb5c5620e9afa3374a9274a75d1effeca7361
Author: Matthias Klose <doko at ubuntu.com>
Date:   Wed Sep 9 15:54:10 2015 +0000

    Fix build with GCC 5
---
 debian/patches/gnu89-inline.diff | 13 +++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 14 insertions(+)

diff --git a/debian/patches/gnu89-inline.diff b/debian/patches/gnu89-inline.diff
new file mode 100644
index 0000000..99f18bb
--- /dev/null
+++ b/debian/patches/gnu89-inline.diff
@@ -0,0 +1,13 @@
+Index: b/include/sigar_private.h
+===================================================================
+--- a/include/sigar_private.h
++++ b/include/sigar_private.h
+@@ -73,7 +73,7 @@
+ #if defined(WIN32)
+ #   define SIGAR_INLINE __inline
+ #elif defined(__GNUC__)
+-#   define SIGAR_INLINE inline
++#   define SIGAR_INLINE __attribute__ ((gnu_inline)) inline
+ #else
+ #   define SIGAR_INLINE
+ #endif
diff --git a/debian/patches/series b/debian/patches/series
index 0556507..18f30d4 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 mips-TIOCGETC-undeclared.patch
+gnu89-inline.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-sigar.git



More information about the Pkg-ruby-extras-commits mailing list